NetLogo / LevelSpace

This is the LevelSpace extension repository. LevelSpace allows you to run NetLogo models |: from inside NetLogo models :|
Other
19 stars 8 forks source link

Synchronization results in major performance hit for GUI models #15

Closed qiemem closed 9 years ago

qiemem commented 10 years ago

The synchronization in runSafely (https://github.com/NetLogo/LevelsSpace/blob/master/src/LevelsSpace.java#L529) results in a major performance hit. There's got to be ways to improve it.

arthurhjorth commented 10 years ago

An alternative would be allowing people to simply transform GUI models into headless models (#23). If people want to run their models faster, they can run them as gui models

For this to work, the RunCommand.perform() method would have to test if the GUIModel's frame is visible. If it is not, it should try to treat the gui model as a headless while it runs the command. If that works, great. If it doesn't, people will just have to live with worse performace in GUI models and consider whether they want them.

qiemem commented 9 years ago

I don't think this is an issue anymore. GUI children are pretty fast now.