New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wip irrlicht particles 2 #2587
wip irrlicht particles 2 #2587
Conversation
Conflicts: src/particles.cpp
What advantages does it pose? Does it make them faster/better? |
Both faster and better. This is using the builtin Irrlicht particle functionality which we've been waiting for :) |
The original pr has collision bugs and generate some lag on Intel GPU |
Then i follow it with attention :) |
I'm not sure how I missed this PR. Watching. |
src/particles.cpp
Outdated
float pps = event->add_particlespawner.amount; | ||
float time = event->add_particlespawner.spawntime; | ||
|
||
if (time != 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't compare floating point numbers to an absolute number
So I tested that PR with your latest commit (4470c27) and here's my report : 1. Compiler's warnings
2. In-game comparisonParticles on current master (5a1975a) - they have the good direction. Same configuration with your Irrlicht particles branch - particles are spreading randomly everywhere surrounded by a moving white box - performances seems similar to current master. |
Yes, well. Those warnings cannot be disregarded at all. |
@obneq perhaps someone could adopt this work and continue it? Or are you planning to restart work? MT particles really need improvement. |
Definitively need huge rework, possible close label |
next attempt here, using custome scene node:
https://github.com/obneq/minetest/tree/scenenodeparticles
sorry for closing and reopening instead of updating PR. this is attempt 2 at a naive replacement of mt particles with irrlicht ones.
it does not yet look like current mt particles and is not meant for straight merge. Instead, developers please review and give your feedback! Please note that this is very much WIP. Ignore style and minor issues if you can and instead let me know what could be done better differently in a larger sense.