Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#592 closed defect (wontfix)

BAR static lua gadget load doubles in latest engine-develop

Reported by: beherith Owned by:
Priority: major Milestone: BAR Beta release
Component: BAR Version:
Keywords: Cc:


I compared 96.0 and 96.0.1-404 BAR /give all and in view with /luaui disable Lua load is 2x in latest engine.

Attachments (3)

screen00504.jpg (816.6 KB ) - added by beherith 9 years ago.
screen00433.jpg (826.2 KB ) - added by beherith 9 years ago.
screen00097.png (2.5 MB ) - added by Bluestone 8 years ago.

Change History (5)

by beherith, 9 years ago

Attachment: screen00504.jpg added


by beherith, 9 years ago

Attachment: screen00433.jpg added


comment:2 by Bluestone, 8 years ago

for me the static load triples between 96 and 97.0.1-20 (when /give all and zoomed in so as units are rendered - if not zoomed in then static load is basically 0)

i think this is all the unit shaders, no idea why it would suddenly cost so much more

by Bluestone, 8 years ago

Attachment: screen00097.png added

comment:3 by Bluestone, 8 years ago

Resolution: wontfix
Status: newclosed

did some work on this and i think it is OK!

for me the effect is caused entirely the custom unit shaders. it is greatly magnified with a /give all and nothing else, because at that point nothing else is going on. but when a full game is running the cost of the unit shader is low enough that even a 2-3x increase (which i bet is in some way due to lua state split) is not important

doing "global" perf tests as best i can, when under stress the performance of BAR (with Floris' too-greedy gui stuff removed - see other tickets) is still pretty much as good as BA. when not under stress the fps is a bit lower due to chili - especially the order/build menu, it would be great to speed up those but idk how to atm - but this effect seems not so important once simframes start taking up most of the time

see screenshot for details of what the perf profile looks like with a game (of bar! :P) running (and no luaui running)

due to the nature of my tests, in the screenshot only the gadget profiler and the middle % column of debug view matter. the other stuff relates to long-term max/min/etc counts and are screwed up due to letting spring idle in between tests and the fact that my tests are "clean map, then spawn a tonne of units and animate them" style things.

reopen if you think differently?

Last edited 8 years ago by Bluestone (previous) (diff)
Note: See TracTickets for help on using tickets.