Game moves enormously slow when eating, reading or resting

https://attnam.com/topics/Game-moves-enormously-slow-when-eating-reading-or-resting

The Cathedral of Attnam > Trouble Shooting and Bugs

#1 Mar 16, 2019, 5:25 am Hide

Sklett

Hello!

For some reason with the new version as soon as I eat, read or do anything that takes more than one turn, the game doesn't play them through and I'll need to spam buttons on the keyboard to make it keep going veeery slowly. Making the game virtually unplayable.

Also happens when going back to the main menu, at which point I need to step thought the opacity transition by hammering keys. XD

Anyone else?
#2 Mar 16, 2019, 9:08 am Hide

Ischaldirh

Humm, I wonder if this is related to the walking problems others have been having?

Sklett, no guarantee this will work, but try toggling numlock and see if that does anything.
#3 Apr 8, 2019, 7:49 am Hide

hydracicada

Sklett wrote
Hello!

For some reason with the new version as soon as I eat, read or do anything that takes more than one turn, the game doesn't play them through and I'll need to spam buttons on the keyboard to make it keep going veeery slowly. Making the game virtually unplayable.

Also happens when going back to the main menu, at which point I need to step thought the opacity transition by hammering keys. XD

Anyone else?

Yep.
I am experiencing the same issues on windooz seven. Frames kinda freeze on reading, eating and when press ESC in the settings.
BUT some days ago i tested IVAN in linux's wine and it works fine.

Ischaldirh wrote
Humm, I wonder if this is related to the walking problems others have been having?

Sklett, no guarantee this will work, but try toggling numlock and see if that does anything.

Nope.
It did nothing.
#4 Apr 10, 2019, 8:49 am Hide

hydracicada

Guys! Found some solution for this issue!
Set frameskip from 0 to 1 and everything looks kinda fine.
#5 Apr 10, 2019, 10:02 am Hide

Beep

For me alt-tabbing out of the game started causing slowdowns, then after I alt-tabbed a second time it would fix it. Modifying frameskip didn't work on my end, but it could be helpful to some. I've got Win 10 64-bit, version 1809 latest updates, if it matters.
#6 Apr 10, 2019, 1:37 pm Hide

hydracicada

Update
Frameskip 1 working fine on win10 64bit chinese monoblock
On win7 64bit msi gaming laptop still lags with frameskip on
Can't figure out what's the matter
I say again, v.056 works fine in wine on linux mint
#7 Apr 10, 2019, 1:39 pm Hide

hydracicada

Beep wrote
For me alt-tabbing out of the game started causing slowdowns, then after I alt-tabbed a second time it would fix it. Modifying frameskip didn't work on my end, but it could be helpful to some. I've got Win 10 64-bit, version 1809 latest updates, if it matters.

Hey! Alt-tabbing fixed lag on win7
Nice find!
#8 Apr 10, 2019, 3:55 pm Hide

fejoa

For me (windows 8.1, 64-bit) doing alt-tab and also setting Frameskip to 1 seems to help restore things to similar performance as before this bug.

The alt-tab thingee is interesting. I think it must have something to do with IVAN partially losing its context. I'll try compile/testing at various points in the Git repo to see when this error might have crept in.
#9 May 21, 2019, 10:11 pm Hide

fejoa

Ok folks, after some bug hunting today I can confirm that this problem is to do with SDL2, and it originates here: https://hg.libsdl.org/SDL/diff/fbfacc66c65c/src/video/window...

EDIT: Here's a PR that should solve the problem: https://github.com/Attnam/ivan/pull/556
#10 Jul 5, 2019, 3:19 pm Hide

MrMagolor

It also seems like, for some bizarre reason, when I did a fresh install of the game on a new computer, the default frameskip was 0(which sets it to 100)?