This site requires JavaScript, please enable it in your browser!
Greenfoot back
Harrypotamus
Harrypotamus wrote ...

2022/2/16

Unplayable lag even when not running game

Harrypotamus Harrypotamus

2022/2/16

#
Whenever. open greenfoot, the program starts lagging a ton. Even when I'm not running the actual game itself, even when I'm in script windows, it's lagging to the point of making the game unplayable. No other program on my computer is lagging, and I don't have anything open except a Google Chrome window with two tabs, and of course Greenfoot. I didn't download anything in between today and yesterday when I last opened it, and nothing changed with my computer. It just randomly started lagging to the point of being unbearable. If anyone else has had this issue, or knows how to fix it or make it less intense, it would help so, so much.
danpost danpost

2022/2/16

#
Sounds like your world initialization has unruly code in it. It could be in the world constructor, itself, or it could be in one or more of the constructors of Objects created during world initialization. What I mean by "unruly code" is code that either does extensive work or does something repeatedly a huge number of times. File operations or accessing a database may increase the potential for lag (accessing UserInfo is included in this catagory). For fastest possible fix, best might be to upload the scenario with source code so others can peruse your code and test it out in hoping to assist.
You need to login to post a reply.