Ncm123
Posts: 4
Joined: Tue Feb 11, 2020 1:44 pm

HTML5 games lagging on pi

Tue Feb 11, 2020 2:02 pm

Hi
I am trying to build a gaming pc for my 5 year old son with the raspberry pi. I wish to make a few html5 games teaching typing , math which will play without lag in the raspberry pi.

I tried playing a few games made in construct 3 but they lagged. Can anyone help me with advice on how to make html5 games that dont lag on the pi?

Thanks!

User avatar
topguy
Posts: 6184
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: HTML5 games lagging on pi

Tue Feb 11, 2020 2:10 pm

Which browser do you test with ?
Does resizing the browser window reduce the "lag" ? ( I interpret "lag" as a low refreshrate/stuttering in the UI )

Ncm123
Posts: 4
Joined: Tue Feb 11, 2020 1:44 pm

Re: HTML5 games lagging on pi

Tue Feb 11, 2020 2:37 pm

I tested on chrome. I am using raspberry pi 4. Lag meaning the frame rate is low of the game and stuttering happens.

Ncm123
Posts: 4
Joined: Tue Feb 11, 2020 1:44 pm

Re: HTML5 games lagging on pi

Fri Feb 14, 2020 4:40 am

Well yesterday, I tried playing this game on chrome in my Pi4 machine. It hanged the PI.
https://html5games.com/Game/Element-Blo ... 6eef2fb5ed

Is there any list online which has list of html5 games working on the pi?

I even tried playing games on the scratch website - even those games lag a lot.

User avatar
clicky
Posts: 425
Joined: Thu Oct 25, 2012 7:34 am

Re: HTML5 games lagging on pi

Sat Feb 15, 2020 7:02 pm

Ncm123 wrote:
Fri Feb 14, 2020 4:40 am
Well yesterday, I tried playing this game on chrome in my Pi4 machine. It hanged the PI.
https://html5games.com/Game/Element-Blo ... 6eef2fb5ed

Is there any list online which has list of html5 games working on the pi?

I even tried playing games on the scratch website - even those games lag a lot.
Something else is wrong. I've just started it on my Pi4 and it works quite well... Maybe not 60fps but works with decent framerate...

kerry_s
Posts: 101
Joined: Thu Jan 30, 2020 7:14 pm

Re: HTML5 games lagging on pi

Sat Feb 15, 2020 7:50 pm

i tried that block 1, it is laggy, but if you enable "GPU rasterization" the force in all layers, in chrome://flags it's a little better. also your going to have to raise the gpu split(performance in the config) mines at 128 right now, you could try that or go higher, i don't recommend more than 256 tops. normally mines at 96 and i'm running gnome, i raised it to try the game. :D

it depends on the game, some run perfectly fine, others don't seem optimized or they have a lot of things going on(aka: trying to be to fancy).
thanks for the heads up on the site though, going to use for my niece.

Ncm123
Posts: 4
Joined: Tue Feb 11, 2020 1:44 pm

Re: HTML5 games lagging on pi

Mon Feb 17, 2020 12:42 pm

Hi
I am using raspberry pi 4 with one gb ram. Do you think 4 gb ram would make it better? If yes, I will obtain one.

User avatar
topguy
Posts: 6184
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: HTML5 games lagging on pi

Mon Feb 17, 2020 1:41 pm

You should check how much of the current 1GB you are using before you splash out on a new Pi.

"htop" is a nice command to install, shows the memory usage a bit better than normal "top".

kerry_s
Posts: 101
Joined: Thu Jan 30, 2020 7:14 pm

Re: HTML5 games lagging on pi

Mon Feb 17, 2020 4:00 pm

i got those games going pretty good.
memory split is set at 160
dropped my resolution from 1920x1080 to 1280x800
turned on all the gpu goodies.
Attachments
2020-02-17-055548_1280x800_scrot.png
2020-02-17-055548_1280x800_scrot.png (133.14 KiB) Viewed 95 times
2020-02-17-055457_1280x800_scrot.png
2020-02-17-055457_1280x800_scrot.png (185.43 KiB) Viewed 95 times

Return to “Gaming”