Frictional Games Forum (read-only)
Stuttering, Small freezes and framerate Issues - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Technical Support (https://www.frictionalgames.com/forum/forum-57.html)
+--- Forum: Technical Support - Amnesia: A Machine for Pigs (https://www.frictionalgames.com/forum/forum-52.html)
+--- Thread: Stuttering, Small freezes and framerate Issues (/thread-22916.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35


RE: Stuttering, Small freezes and framerate Issues - nebej - 09-12-2013

spidernetlabs you can continue on your old save, but the stuttering will only dissapear when you reach the next level. It requires a map to load fully for the stuttering to dissapear, which it doesnt do when loading a save file

(09-12-2013, 03:34 PM)lovebunny Wrote: I've done some more testing of different variations (all with the original *.snd and *.ogg files of course):
  1. Original aamfp.exe, original main_settings.cfg, patched SDL2.dll, new profile, new game: Stutters.
  2. Second aamfp_stutter.exe, original main_settings.cfg, original SDL2.dll, new profile, new game: Slightly better! Some freezes vanished. Don't know why I didn't notice on first test. Still stutteres when walking through doors.
  3. Latest aamfp_stutter.exe, original main_settings.cfg, original SDL2.dll, new profile, loaded game: Same as 2.
  4. Latest aamfp_stutter.exe, original main_settings.cfg, patched SDL2.dll, new profile, new game: Same as 2.
  5. Latest aamfp_stutter.exe, lowered main_settings.cfg (32, 4, 131072), original SDL2.dll, new profile, new game: Much better! No more reproducable stutters! Smile
  6. Latest aamfp_stutter.exe, lowered main_settings.cfg, original SDL2.dll, new profile, loaded game: Same as 5.
  7. Latest aamfp_stutter.exe, lowered main_settings.cfg, original SDL2.dll, old profile (created by original aamfp.exe), loaded game: Stutteres!
So as they saied, you definitly have to create a new profile and start a new game using the latest aamfp_stutter.exe, or it won't work! Seems I can finally start playing this awesome game. But not before tonight, with lights of and headphones on. Wink

Nice finds! Im gonna see if we should reduce the number of streams to 4 too see if that fixes the problem for more people


RE: Stuttering, Small freezes and framerate Issues - spidernetlabs - 09-12-2013

(09-12-2013, 03:54 PM)nebej Wrote: spidernetlabs you can continue on your old save, but the stuttering will only dissapear when you reach the next level. It requires a map to load fully for the stuttering to dissapear, which it doesnt do when loading a save file
Ok, thanks. Wink
(09-12-2013, 03:54 PM)nebej Wrote: Nice finds! Im gonna see if we should reduce the number of streams to 4 too see if that fixes the problem for more people
I also lowered MaxChannels and StreamBufferSize and it helped. I'm looking forward to test the new patch.


RE: Stuttering, Small freezes and framerate Issues - iral - 09-12-2013

Much better for me with the second stutter patch!

(Core i7 965, gtx 670 Sli, 12GB, Windows 7 64 bits).

Still some very little stutters, but finally playable Smile

But one question, you need the Sd2.DLL to use this exe, no? Whitout it you can't launch the game, am I wrong?

Maybe you could put all the necessary files in the same .rar for future users.


RE: Stuttering, Small freezes and framerate Issues - lovebunny - 09-12-2013

(09-12-2013, 04:10 PM)iral Wrote: But one question, you need the Sd2.DLL to use this exe, no? Whitout it you can't launch the game, am I wrong?

The unpatched game already includes a version of the SDL2.dll. The new version from the sdl2_test_patch.zip is apparently not necessary for fixing the stuttering. (At least not for me)


RE: Stuttering, Small freezes and framerate Issues - jens - 09-12-2013

If I can bother you to test a bit more. What happens with:

MaxChannels="64" StreamBuffers="4" StreamBufferSize="262144"

MaxChannels="64" StreamBuffers="8" StreamBufferSize="131072"

Just to check if we really need to lower all three. For reference the original Amnesia uses:
MaxChannels="32" StreamBuffers="4" StreamBufferSize="262144"

(09-12-2013, 03:34 PM)lovebunny Wrote: I've done some more testing of different variations (all with the original *.snd and *.ogg files of course):
  1. Original aamfp.exe, original main_settings.cfg, patched SDL2.dll, new profile, new game: Stutters.
  2. Second aamfp_stutter.exe, original main_settings.cfg, original SDL2.dll, new profile, new game: Slightly better! Some freezes vanished. Don't know why I didn't notice on first test. Still stutteres when walking through doors.
  3. Latest aamfp_stutter.exe, original main_settings.cfg, original SDL2.dll, new profile, loaded game: Same as 2.
  4. Latest aamfp_stutter.exe, original main_settings.cfg, patched SDL2.dll, new profile, new game: Same as 2.
  5. Latest aamfp_stutter.exe, lowered main_settings.cfg (32, 4, 131072), original SDL2.dll, new profile, new game: Much better! No more reproducable stutters! Smile
  6. Latest aamfp_stutter.exe, lowered main_settings.cfg, original SDL2.dll, new profile, loaded game: Same as 5.
  7. Latest aamfp_stutter.exe, lowered main_settings.cfg, original SDL2.dll, old profile (created by original aamfp.exe), loaded game: Stutteres!
So as they saied, you definitly have to create a new profile and start a new game using the latest aamfp_stutter.exe, or it won't work! Seems I can finally start playing this awesome game. But not before tonight, with lights of and headphones on. Wink



RE: Stuttering, Small freezes and framerate Issues - lovebunny - 09-12-2013

(09-12-2013, 04:31 PM)jens Wrote: If I can bother you to test a bit more. What happens with:
MaxChannels="64" StreamBuffers="4" StreamBufferSize="262144"
MaxChannels="64" StreamBuffers="8" StreamBufferSize="131072"
Just to check if we really need to lower all three. For reference the original Amnesia uses:
MaxChannels="32" StreamBuffers="4" StreamBufferSize="262144"

  1. MaxChannels="32" StreamBuffers="4" StreamBufferSize="131072": No reproducable stutters.
  2. MaxChannels="64" StreamBuffers="4" StreamBufferSize="262144": Noticable stutters e.g. when walking through doors or at the piano-shock.
  3. MaxChannels="64" StreamBuffers="8" StreamBufferSize="131072": Same as 2.
  4. MaxChannels="32" StreamBuffers="4" StreamBufferSize="262144": Same as 2.
In all above mentioned scenarios some stutteres disappeared (compared to the unpatched aamfp.exe), eg. when the thunder sets in near the attic window.

Someone else should also test this and confirm or refute my findings!


RE: Stuttering, Small freezes and framerate Issues - iral - 09-12-2013

(09-12-2013, 04:23 PM)lovebunny Wrote:
(09-12-2013, 04:10 PM)iral Wrote: But one question, you need the Sd2.DLL to use this exe, no? Whitout it you can't launch the game, am I wrong?

The unpatched game already includes a version of the SDL2.dll. The new version from the sdl2_test_patch.zip is apparently not necessary for fixing the stuttering. (At least not for me)

Strange, maybe with the steam version. For my GOG version I had to download a version of the SDL2.dll...


RE: Stuttering, Small freezes and framerate Issues - jens - 09-12-2013

Alright, thanks! Yes, would be nice if someone else also can test.

I'll go over and also change some sounds that currently streams to be loaded to memory instead, because else I think there will be quite often situations where not all sounds get to play. Basically music, voices and base ambient sound is streaming, so will change so that only music and voices stream. Then 4 stream buffers should be enough.


RE: Stuttering, Small freezes and framerate Issues - CalinTM - 09-12-2013

So messing with the audio in cfg file works only if i start a new game with a new profile ?

Ok it works for me too, 0 stuttering so happy now, i need to start the game from the beginning now...but at least i dont have stuttering.

Now i need to open the game from the aampf_stutter.exe everytme ?


RE: Stuttering, Small freezes and framerate Issues - Stangi - 09-12-2013

Why are some sounds streamed at all? I mean, wouldn't it be better to preload all of it? I don't imagine it would affect the loading times drastically...?