Drawing conditional lines


Re: Drawing conditional lines
#7
If LDForge only deals with parts, then calculating the conditionals every frame on the CPU isn't ever going cause a performance problem (even if you don't bother to try to optimize with multi-threading). Even with the 48x48 baseplate, LDView gets 480FPS with conditional lines enabled on my computer (and around 2000 with them disabled).

Mind you, calculating which ones to draw is a pain. However, because of this, the code inside LDView that calculates whether a particular conditional should be drawn is well-commented. You're welcome to copy it if you want. Take a look at TREShapeGroup:ConfusedhouldDrawConditional() here:

http://ldview.cvs.sourceforge.net/viewvc...iew=markup

Note: I think Don Heyse gave me the initial code that the LDView code is based on.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Drawing conditional lines - by Santeri Piippo - 2013-05-08, 19:24
Re: Drawing conditional lines - by Tim Gould - 2013-05-08, 21:20
Re: Drawing conditional lines - by Travis Cobbs - 2013-05-08, 23:10
Re: Drawing conditional lines - by Steffen - 2014-11-28, 1:33

Forum Jump:


Users browsing this thread: 1 Guest(s)