Personal tools
You are here: Home documentation old GemFAQ How can I optimize my patches?
Views

One of the biggest performance hits is having UI elements in your patch which have to be updated.

The biggest performance hog is the number box. While the number box is great for debugging, make sure that they are all gone from your "release" patch.

If you run a performance meter, you will see that whenever Tcl/Tk has to update the user interface, it sucks the entire processor. Another examples of this is when you move a lot of objects at once, everything jerks and slides across the screen. There are probably ways to improve this...

Another problem is doing unneccessary calculations. When you are throwing lots of numbers around, especially packing/unpacking, doing vector math, etc., they add up. If the calculations are going unused (for instance, that part of the patch is turned off), then do not trigger the math objects.

Use spigot or gate and block the events early. This is especially important with objects that send a lot of numbers, like ~ objects or line/tripleLine.



Powered by IEM Powered by Plone Section 508 WCAG Valid XHTML Valid CSS Usable in any browser