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 Classic Chat / Possible To Skip Frames To Increase Speed Of Game On Slow Hardware?

Author
Message
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 8th Sep 2019 20:54
Hi,

On the following system:
- Kubuntu 18.04.3 LTS 64Bit Linux OS
- Intel Celeron "Baytrail" 2GHz(2.42GHz Turbo) 4-Core CPU
- 16GB RAM Memory
- nVidia GeForce GT 1030 2GB GDDR5 GPU with v430.40 Linux drivers
- Western Digital 1TB HDD

we get about 15 Frames Per Second on HTML5 version of our game.

Would it be possible to skip frames?
Is there a setting somewhere or a command to tell game to skip frames if performance is poor?
Let us know, many thanks!

Jesse
JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 8th Sep 2019 21:23
Found below:
https://www.appgamekit.com/documentation/Reference/Core/SetVSync.htm

I'll play with it later today...

Jesse
JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 8th Sep 2019 22:10 Edited at: 8th Sep 2019 22:11
html5
As little music or sound playing
as little transparency as possible.
as little image size as possible.
only wav files.
go thru any sound files and cut away empty spaces at start or end to make files smaller.
and use tiny png on images.

Html 5 is super duper slow.
Conjured Entertainment
AGK Developer
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 8th Sep 2019 23:58 Edited at: 9th Sep 2019 00:06
Quote: "we get about 15 Frames Per Second on HTML5 version of our game."

Default speed for sprite animations is 10 frames per second, so you are already at 150% of the speed you need, right?



Quote: "

SetVSync
Description

Sets whether vertical sync should be turned on or off. This is the preferred method of limiting the frame rate as it will link the frame rate to the monitor refresh rate and avoid tearing or stuttering. Using this command with mode 1 will override any currently set refresh rate from SetSyncRate, otherwise these two commands would fight each other for control of the frame rate, instead AppGameKit will use the VSync refresh rate which is typically 60 frames per second, but depends on the monitor.

On Linux, Mac, and HTML5 you can use a value greater than 1 to skip refreshes, for example if the monitor refresh rate is 60Hz then a mode value of 1 would limit the app to 60fps, but a mode value of 2 would skip every other refresh which would limit the app to 30fps.

"



EDIT
Quote: "
Found below:
https://www.appgamekit.com/documentation/Reference/Core/SetVSync.htm
"

Cool
I didn't see that you had solved it already.
I like to use this for every build.

Quote: "
html5
As little music or sound playing
as little transparency as possible.
as little image size as possible.
only wav files.
go thru any sound files and cut away empty spaces at start or end to make files smaller.
and use tiny png on images."

Great advice.

Coding things my way since 1981 -- Currently using AppGameKit V2 Tier 1

Login to post a reply

Server time is: 2024-04-24 11:47:32
Your offset time is: 2024-04-24 11:47:32