Giter Club home page Giter Club logo

Comments (7)

62316e avatar 62316e commented on June 15, 2024

Can you please confirm you are using GCC build "npm run bundle"?

from black-donuts.

rhyzx avatar rhyzx commented on June 15, 2024

image

I ran it the way as npm run bundle && http-server dist, and the results were about the same.
Besides, I tested it on my colleague's computer(Macbook Pro 2013 13inch) and it turned out to be even worse, only about 10 fps.

from black-donuts.

62316e avatar 62316e commented on June 15, 2024

Hi @rhyzx
We ran a few tests with High DPR enabled and disabled.

I can confirm that FPS is two times lower on MacBook Pro with High DPR enabled.
The funny fact is that tests on Android and iOS showed the same results.

The resolution property will be added to CanvasDriver in the next release.

from black-donuts.

rhyzx avatar rhyzx commented on June 15, 2024

I see, thanks @62316e . So is this the performance limit for canvas? Is it only possible to switch to WEBGL to achieve higher performance for this game? I was wondering if there was any space for canvas to optimize.

from black-donuts.

62316e avatar 62316e commented on June 15, 2024

New ‘resolution’ property will fix poor performance on macbooks in this case.

WebGL will be faster for sure. (Coming soon)

The reason why we picked canvas is old device support and it works more stable then WebGL.

Also fallback to canvas is must have option when developing for Facebook Instant Games Lightweight.

There is no “universal solution” atm. You have to pick between target audiance/quality/performance.

from black-donuts.

rhyzx avatar rhyzx commented on June 15, 2024

Got it. Thank you.

from black-donuts.

62316e avatar 62316e commented on June 15, 2024

Please take a look into 0.6.x-dev branch. Added UseHiDPR property.
FPS should be ok for you now.

from black-donuts.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.