Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / Android framerate stuttering with sound playback.

Author
Message
agkcoder
20
Years of Service
User Offline
Joined: 12th Dec 2004
Location:
Posted: 6th Jan 2023 09:40 Edited at: 26th Jan 2025 07:07
...
SFSW
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location:
Posted: 6th Jan 2023 16:21
For me, the problem has surfaced on virtually every Android device I can recall testing, ranging from 4 through 11 with a wide range of processors and memory specifications. Also with every version of Studio I have tried. A more feasible question might be: What device(s) does it not occur on?

For the last question, it has been intermittent and varies in duration. The stutter occurs at pretty much every sound playback instance, but the severity varies. It may be a slight 10-20ms pause or it may be 100-250ms (with the same sound effect on the same device). Sometimes a severe stutter occurs on the first sound play, sometimes on the 5th or 10th, sometimes it remains short. But a hesitation always seems to occur consistently whether short or long.
agkcoder
20
Years of Service
User Offline
Joined: 12th Dec 2004
Location:
Posted: 7th Jan 2023 10:24 Edited at: 26th Jan 2025 07:08
...
SFSW
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location:
Posted: 7th Jan 2023 20:48
Ironically, it does seem less pronounced on -older- devices. Not sure why, but for whatever reason(s), stuttering might be about 1/10 on older devices compared to newer ones. It may be more difficult to spot, but there always seems to be at least a slight delay (enough to throw off aiming in my projects at least). Previous discussions on the topic seem to indicate that the root of the problem might be due to the Android Studio player not threading audio playback, so a single thread has to try and manage everything in addition to any audio you try to play. So perhaps newer devices have some changes that make that process less efficient and weaker from a performance standpoint.
agkcoder
20
Years of Service
User Offline
Joined: 12th Dec 2004
Location:
Posted: 7th Jan 2023 20:55 Edited at: 31st May 2023 19:20
Hm...

Login to post a reply

Server time is: 2025-06-24 23:07:01
Your offset time is: 2025-06-24 23:07:01