Page 1 of 1

Mictro stutter issues

Posted: Sun Nov 04, 2018 6:08 pm
by MissDanish
I am having issues with micro stutter in my game, some things I have tried:
-Stopping garbage collection (many threads mentioned issues with it and this does nothing but result in a memory leak essentially, the stutter persists)
-Disabling/enabled vsync (this again does nothing)

specs
Windows 10
AMD Vega 56 (with the 18.10.2 driver)
i5-6500

Anyone got any idea of what it might be?

Re: Mictro stutter issues

Posted: Sun Nov 04, 2018 8:47 pm
by pgimeno
Is there disk access while it happens?

If you call jit.off() to disable JIT, does it still happen?

Re: Mictro stutter issues

Posted: Sun Nov 04, 2018 10:24 pm
by MissDanish
pgimeno wrote:
Sun Nov 04, 2018 8:47 pm
Is there disk access while it happens?

If you call jit.off() to disable JIT, does it still happen?
There appears to be no disk access / loading while it happens, I also tried turning JIT off but that seems to have made no difference.

Re: Mictro stutter issues

Posted: Mon Nov 05, 2018 3:16 pm
by gg
Does it stutter all the time or just when certain things happen? What was the last code change you made before this happened?

With the garbage collection on... do you see the memory usage keep going up or is it pretty stable after the game loads?

Can you show code?

Re: Mictro stutter issues

Posted: Mon Nov 05, 2018 3:28 pm
by MissDanish
gg wrote:
Mon Nov 05, 2018 3:16 pm
Does it stutter all the time or just when certain things happen? What was the last code change you made before this happened?

With the garbage collection on... do you see the memory usage keep going up or is it pretty stable after the game loads?

Can you show code?
1. It stutters every 4-10 secs (it's pretty inconsistent it seems), if it stutters when something is happening I don't know what is happening since there is A LOT that goes on in my game.
2. The memory usage is very stable with garbage collection on, it hovers between 280-320 megabytes
3. My project is rather huge so I don't know how helpful that would be, there's 70+ lua files....

Re: Mictro stutter issues

Posted: Mon Nov 05, 2018 3:54 pm
by gg
Does it happen on any other computer?

You can try to disable/comment out as much of your code as possible and then put it back 1 at a time, slowly, and check if it works better.

Is it malfunctioning any other way? If you don't mind sharing your code then I don't mind looking at it for you... .LÖVE ...is enough!

Re: Mictro stutter issues

Posted: Mon Nov 05, 2018 4:23 pm
by MissDanish
gg wrote:
Mon Nov 05, 2018 3:54 pm
Does it happen on any other computer?

You can try to disable/comment out as much of your code as possible and then put it back 1 at a time, slowly, and check if it works better.

Is it malfunctioning any other way? If you don't mind sharing your code then I don't mind looking at it for you... .LÖVE ...is enough!
I'd rather not share my code just yet, it's a very large project and sort of commercial. From what I can tell nothing is malfunctioning, no errors, and normal FPS fluctuation. That said I need to test on other computers, I haven't yet.