Moving Water Grid to GPU
I profiled the game again and figured out the next big culprit to the slow framerate(s) was the water grid and rightfully so. The reason why it was slow was that I had to check for each vertex the Y position and change the color based on height (still do atm but probs could optimize this by using math instead of an if else branch later on CPU or GPU). Not only that but it also had to add to the grid's base Y value to move it upwards or downwards. Still though, this doesn't remotely compare to how slow drawing the skybox was soooooooo yea but it was still slow enough.
Anyways, I would reccomend that you jsut check this twitter video https://twitter.com/AndrewNReinke/status/1454519700512120834 for a better rough idea of what's going on. I could also just stay here and complain about how most of today was dealing with Directx12 API specific bullshit to even get this all working and what not but I won't.
Please let me know what you think about the currently playable build of the game! Have an awesome day!
Files
Get Funmi
Funmi
Rotate the boat in air to get a high score
Status | In development |
Author | AndrewNReinke |
Genre | Action |
Tags | 3D, Arcade, DRM Free, handmade-engine, High Score, Low-poly, Retro, Rotation, Singleplayer, Third Person |
Languages | English, Japanese |
More posts
- Steam ReleaseDec 24, 2021
- Lots Of Changes With Text and StuffNov 19, 2021
- Text Texture AtlasNov 16, 2021
- Very Smol FixNov 15, 2021
- Font GenerationNov 14, 2021
- Added Fade In / Out And New Particle SystemNov 13, 2021
- Circular TextureNov 12, 2021
- I Wrote This Technique Thingy While Being Really Tired lmaoNov 11, 2021
- Collapsing UI Code Into One PipeNov 09, 2021
- Fixed Timers & Collision Volume BugsNov 08, 2021
Leave a comment
Log in with itch.io to leave a comment.