Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 21 Vote(s) - 4.62 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stuttering, Small freezes and framerate Issues
nebej Offline
Frictional Games

Posts: 179
Threads: 8
Joined: Dec 2012
Reputation: 3
Solved: 10 Years, 3 Months ago RE: Stuttering, Small freezes and framerate Issues

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
(This post was last modified: 09-12-2013, 03:55 PM by nebej.)
09-12-2013, 03:54 PM
Find
spidernetlabs Offline
Junior Member

Posts: 43
Threads: 1
Joined: Feb 2013
Reputation: 0
Solved: 10 Years, 3 Months ago RE: Stuttering, Small freezes and framerate Issues

(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.

09-12-2013, 04:00 PM
Website Find
iral Offline
Junior Member

Posts: 14
Threads: 1
Joined: Sep 2010
Reputation: 0
Solved: 10 Years, 3 Months ago RE: Stuttering, Small freezes and framerate Issues

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.
(This post was last modified: 09-12-2013, 04:11 PM by iral.)
09-12-2013, 04:10 PM
Find
lovebunny Offline
Junior Member

Posts: 17
Threads: 0
Joined: Sep 2013
Reputation: 1
Solved: 10 Years, 3 Months ago RE: Stuttering, Small freezes and framerate Issues

(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)

Win7 64Bit, GeForce GTX 560 Ti, Intel Core 2 Quad Q8400, 6GB RAM, OCZ Vertex3 SSD, Steinberg UR22 audio interface.
09-12-2013, 04:23 PM
Find
jens Offline
Frictional Games

Posts: 4,093
Threads: 199
Joined: Apr 2006
Reputation: 202
Solved: 10 Years, 3 Months ago RE: Stuttering, Small freezes and framerate Issues

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
09-12-2013, 04:31 PM
Website Find
lovebunny Offline
Junior Member

Posts: 17
Threads: 0
Joined: Sep 2013
Reputation: 1
Solved: 10 Years, 3 Months ago RE: Stuttering, Small freezes and framerate Issues

(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!

Win7 64Bit, GeForce GTX 560 Ti, Intel Core 2 Quad Q8400, 6GB RAM, OCZ Vertex3 SSD, Steinberg UR22 audio interface.
09-12-2013, 05:02 PM
Find
iral Offline
Junior Member

Posts: 14
Threads: 1
Joined: Sep 2010
Reputation: 0
Solved: 10 Years, 3 Months ago RE: Stuttering, Small freezes and framerate Issues

(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...
09-12-2013, 05:05 PM
Find
jens Offline
Frictional Games

Posts: 4,093
Threads: 199
Joined: Apr 2006
Reputation: 202
Solved: 10 Years, 3 Months ago RE: Stuttering, Small freezes and framerate Issues

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.
09-12-2013, 05:06 PM
Website Find
CalinTM Offline
Junior Member

Posts: 41
Threads: 6
Joined: Sep 2013
Reputation: 0
Solved: 10 Years, 3 Months ago RE: Stuttering, Small freezes and framerate Issues

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 ?
(This post was last modified: 09-12-2013, 05:44 PM by CalinTM.)
09-12-2013, 05:15 PM
Find
Stangi Offline
Junior Member

Posts: 25
Threads: 3
Joined: Oct 2010
Reputation: 0
Solved: 10 Years, 3 Months ago RE: Stuttering, Small freezes and framerate Issues

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...?
09-12-2013, 06:14 PM
Find




Users browsing this thread: 1 Guest(s)