Comments (12)
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.
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.
But why only with this game. Supertuxkart for example works fast.
from dustracing2d.
ok, is there a flag to turn this feature off ?
from dustracing2d.
Try this out: 596a0f1
from dustracing2d.
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.
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.
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.
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.
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.
after you wrote about this new feature i downloaded the master as zip ...
from dustracing2d.
so can we please add more switches that simplify the graphics - to make it run on rpi4 ?
from dustracing2d.
Related Issues (20)
- Incorrect starting positions (odd/even swapped) HOT 2
- Use fair starting positions in Duel
- Play countdown sounds on start
- Both GUI elements flash in 2-player race/duel
- Game no longer records race and lap records HOT 6
- Media license question HOT 2
- Network / LAN play
- "Wrong way" announcement missing.
- Playing for windows 10 HOT 2
- Lap count HOT 3
- Spelling Mistake in Track Editor HOT 1
- fails to build on OpenBSD with qt 5.15 HOT 25
- 2.1.1 segfaults when trying to start a race HOT 4
- Destruction derby and car soccer
- Fail build on macOS HOT 3
- Was a Custom Soundtrack ever considered for this game? HOT 6
- Flathub HOT 1
- Steering stops working on MacOS
- Add pause menu HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dustracing2d.