from Hacker News

I Optimised My Game Engine Up to 12000 FPS [video]

by Orochikaku on 4/12/24, 10:17 PM with 9 comments

  • by mpwoz on 4/12/24, 11:53 PM

    This was a really cool deep dive into various optimizations that apply specifically to voxel-based games.

    I especially enjoyed how the author packed progressively more information into the bits of a single integer using some clever tricks, and it stayed approachable the whole time even for those who don’t do a lot of low level bitwise optimizations in their day to day (me)

  • by mcraiha on 4/13/24, 5:37 AM

    High engine FPS is also super important for stress testing the potential servers and/or doing some machine learning inside the game.
  • by jokoon on 4/12/24, 11:27 PM

    he should rather invent a screen with a higher refresh rate
  • by 01HNNWZ0MV43FF on 4/13/24, 5:52 AM

    I mean it's voxels so

    Could have also not used those

  • by naikrovek on 4/13/24, 1:25 AM

    None of these things are secrets or even hard to learn on one’s own.

    I am not a developer (not a real one, anyway) and I am definitely not a game developer but I wrote a ton of 3D stuff for work and learned all of these optimization techniques along the way.

    Once one learns the basics of how data is sent to GPUs, these techniques all become obvious, though some are much more difficult when you don’t restrict yourself to a world built with axis-aligned cubes.