Code center > Suggestions
Perf and zooming
EricL:
2.43m contains a significant performance improvement for those people who run with graphics on and the view zoomed in to show only a portion of the field. In all prior versions, all the ties and bots and stuff were being drawn independent of whether you were zoomed in or not. If you were zoomed in, most of this work was wasted, displaying stuff not on the screen. As of 2.43m, I only bother to display stuff that is actually visible. This is essentially equivalent to turning off the graphics for everything not on the screen. The more you zoom in, the faster the sim runs. The perf improvement for people who run this way is significant (e.g. 25% increase in cycles/sec for a sim with 1000 bots when zoomed in significantly vs. full field in view).
I may attempt some other perf improvements in this area. In order to do so, I'd like to know more about how people run their sims.
hmm. Seems I only get three poll questions. Please reply with any other comments you may have along these lines. In particular:
Does anyone care about the lame little "skin" squiggles inside bots?
What cycle/sec rate do you aim for when chooisng your sim size / number of bots, etc.? Namely, how slow is so slow that you decide to make your sim smaller?
Do you run with shapes? Would you be willing to take a perf hit (in sims with shapes) to make shapes better? e.g. bots could burrow into them, shoot off pieces, etc.
Testlund:
Usually I open a few graphs when I start the sim and then close them to set the values, so to speak, so I can open them later and see the progress.
I've noticed a slight performance boost sometimes when I zoom in, but usually I have it zoomed out all the way when I'm not watching it. I should probably have an empty spot zoomed in when I'm not watching.
EricL:
There should not be any noticible perf difference when zoomed in in current builds. The perf enhancement isn't in yet.
You don't use the "no graphics" button when not watching the sim?
Would people be interested in the program automatically turning off graphics after some period of user inactivity?
Testlund:
--- Quote from: EricL ---There should not be any noticible perf difference when zoomed in in current builds. The perf enhancement isn't in yet.
--- End quote ---
What? Then I guess the performance will get even better when you've put it in!
--- Quote ---You don't use the "no graphics" button when not watching the sim?
--- End quote ---
I can't see any improvement in performance by disabling any graphical feature, not even disabling video output. Right now my sim is down to 0.1 crawl nomatter what I do.
Only by pressing the 'Toggle fast mode' button I get improved performance, so that's the only one I use. The 'flicker mode' just causes flicker but no performance boost. The button left of the 'Toggle fast mode' button was something Nums put in to slow down the sim if it was running too fast, but it looks like you've disabled that in this version.
shvarz:
--- Quote ---Does anyone care about the lame little "skin" squiggles inside bots?
--- End quote ---
Not really. I'd rather have different shapes for bots, even if they are just for show.
--- Quote ---What cycle/sec rate do you aim for when chooisng your sim size / number of bots, etc.? Namely, how slow is so slow that you decide to make your sim smaller?
--- End quote ---
0.5-1 cycles/sec.
--- Quote ---Do you run with shapes? Would you be willing to take a perf hit (in sims with shapes) to make shapes better? e.g. bots could burrow into them, shoot off pieces, etc.
--- End quote ---
Not recently. I kind of forgot about them. I guess I would like to experiment more with them.
Navigation
[0] Message Index
[#] Next page
Go to full version