Create account / Log in

Any way to look under the hood for lag issues?

Issues with the Vassal engine.

Moderators: Tim M, uckelman

Any way to look under the hood for lag issues?

Postby Benkyo » September 26th, 2019, 10:45 am

I had a setup button that was taking ~10 seconds to set up a new game. A bit long, but acceptable.

Then I massively reworked a whole ton of stuff in response to a user request and now the setup takes anywhere from 30 seconds to 2 minutes!

Trying to track down the source of the massive increase is really time-consuming and frustrating. Is there any way to analyse this other than trial and error? Cut out stuff until it speeds up, then rework it? I would love to have some other options. Everything works fine, but fine-tuning the speed of a Vassal module is no fun.
Benkyo
 
Posts: 128
Joined: March 13th, 2013, 11:02 pm

Re: Any way to look under the hood for lag issues?

Postby zgrose » September 29th, 2019, 3:02 pm

Too much state and too many click handlers and you get these kinds of modules.
It's been a while since I've made a module, but I seem to remember one can potentially cut down setup time loading a setup file versus "in-code" setup.
zgrose
 
Posts: 39
Joined: September 8th, 2010, 4:31 am


Return to Technical Support & Bugs

Who is online

Users browsing this forum: MSN [Bot] and 1 guest