C++ Sorting algos comparison - rendering sprites based on y-axis with raylib
Вставка
- Опубліковано 18 лют 2023
- Today's code
github.com/jarreed0/sorttest-...
Sign up to the raylib newsletter
raylibweekly.com/
Boxbrain's game
• Feeding your army: foo...
My Channel: ua-cam.com/users/someguy6...
Like, comment, and subscribe! 👍
Music
#gamedev #coding #raylib - Ігри
I’m just getting into game development and hasn’t even considered this as an issue. thanks for the heads up!
Jesus, you code in nano. You are a legend for sure.
I also made my own sorting algorithm using merge sort I follow Raysan's (Raylib creator) advice , sorting all the sprites and using pointers, which I did after that since I have a dynamic player,objects that move , after the list is sorted all reference to player and objects lost, though I have to search to have the correct index, with mergesort I was able to sort 10k trees and dynamic objects along at stable 60 fps.
Why did you leave vsync on? I would have liked to see how many FPS you actually can get with 5k sprites so I can see how much sprites I can put without dropping below 60fps.
O