GithubHelp home page GithubHelp logo

Comments (12)

juzzlin avatar juzzlin commented on June 18, 2024 1

But why only with this game. Supertuxkart for example works fast.

That's because SuperTuxCart and other games very likely don't use framebuffer blitting at all. In Dust Racing 2D it's being used to create those fake 3D shadows. I'm only guessing that it could be the reason.

from dustracing2d.

juzzlin avatar juzzlin commented on June 18, 2024

My guess is that there might be no HW acceleration on Raspberry Pi for framebuffer blitting that is being used in renderer.cpp:

QOpenGLFramebufferObject::blitFramebuffer(m_shadowFbo.get(), m_fbo.get(), GL_DEPTH_BUFFER_BIT);

from dustracing2d.

kiai72 avatar kiai72 commented on June 18, 2024

But why only with this game. Supertuxkart for example works fast.

from dustracing2d.

kiai72 avatar kiai72 commented on June 18, 2024

ok, is there a flag to turn this feature off ?

from dustracing2d.

juzzlin avatar juzzlin commented on June 18, 2024

Try this out: 596a0f1

from dustracing2d.

juzzlin avatar juzzlin commented on June 18, 2024

Build with -DDisableFramebufferBlits=ON and it will render the shadows directly to the target framebuffer. The only downside is that they will be pretty bad. However, if this fixes the performance issue on Raspberry Pi I could try to improve that method.

from dustracing2d.

kiai72 avatar kiai72 commented on June 18, 2024

i build with
cmake ../.. -DDisableFramebufferBlits=OFF
make

but it does not change anything. still unplayable slow. Or do i have to set a flag in .conf as well ?

from dustracing2d.

juzzlin avatar juzzlin commented on June 18, 2024

i build with cmake ../.. -DDisableFramebufferBlits=OFF make

but it does not change anything. still unplayable slow. Or do i have to set a flag in .conf as well ?

Should be -DDisableFramebufferBlits=ON. I made a typo in my earlier comment, but immediately fixed it :)

from dustracing2d.

kiai72 avatar kiai72 commented on June 18, 2024

i tried with -DDisableFramebufferBlits=ON as well (+ another make) -> no change!

not only the game is slow - even the menu is very slow.

from dustracing2d.

juzzlin avatar juzzlin commented on June 18, 2024

Stupid question, but did you update the source code from master branch so that it actually included my framebuffer hack in commit 596a0f1 ?

If yes, then the root cause for the slowness must be something else and needs more investigation.

from dustracing2d.

kiai72 avatar kiai72 commented on June 18, 2024

after you wrote about this new feature i downloaded the master as zip ...

from dustracing2d.

kiai72 avatar kiai72 commented on June 18, 2024

so can we please add more switches that simplify the graphics - to make it run on rpi4 ?

from dustracing2d.

Related Issues (20)

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.