Author Topic: Slowdown after leaving the game on for a while  (Read 170 times)

alexgleason

  • Jr. Member
  • **
  • Posts: 74
  • Vegan on a Desert Island
    • View Profile
    • Vegan on a Desert Island
Slowdown after leaving the game on for a while
« on: September 29, 2018, 11:12:28 pm »
My game runs at full speed normally. But sometimes I'll leave the game window open while I'm working on some code. When I return 20 minutes later it's often lagging quite a bit. CPU usage goes up to 100% on one of my cores.

It's possible my game code is causing this, but I'm not sure where. I'm not using game:on_update() anywhere and I don't think I'm firing off any events that never stop. Has anyone else experienced this? Solarus 1.5.3
RIP Aaron Swartz

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
Re: Slowdown after leaving the game on for a while
« Reply #1 on: September 30, 2018, 12:48:08 am »
We fixed some performance issues in Solarus 1.6. Can you compile the dev branch of the repository to see if you still have the problem?

Akamatsu

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Slowdown after leaving the game on for a while
« Reply #2 on: September 30, 2018, 04:51:16 am »
@Christopho

I've got a compiled version and have not had this issue how long does it have to be running?