CuriousSapien

Optimize a game for a very low end System

Recommended Posts

Hello,

I am working on an HTML game for the Raspberry Pi, a very low end affordable PC. The game is finished and works well on my Desktop PC, however when I took the game folder, transferred it into my raspberry pi and executed it with Chromium, my game started lagging unbearably.

I tried to make the game lag less by reducing the size of the Chromium window and this worked. The game was extremely small, however, and it was only occupying 1/4th the screen. Then I reduced the resolution of the raspberry pi itself, and this worked but once again, I can't expect every user to reduce the resolution of their raspberry pi for a browser game.

Can someone please let me know what all I could try in order to optimize and reduce the "weight" of my game in order to better run it on extremely low end systems?

Any help appreciated, thanks!

Share this post


Link to post
Share on other sites

Hi @CuriousSapien,

Is your game a regular HTML dom game? or is it a HTML 5 Canvas game? the difference matters immensely as I've tried making games in regular dom before and it's just not build for constant updating of the elements.

They way I often handle resolution related problems is instead of rendering the game at full resolution I would render it at half and then scale it with. (not ideal but it does the job)

transform: scale(2, 2);


This ofcourse only works if your game is a HTML5 Canvas.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.