Login
You're viewing the ruby.social public feed.
  • Apr 23, 2025, 3:50 PM

    @montyontherun just basic thread pooling, when my engine starts up it queries the cpu, creates a bunch of basic worker threads that pause until you trigger them by passing a function to them, once triggered they execute the function (which just takes a pointer to the renderer object, camera, map file, and current x position)

    💬 2🔄 0⭐ 0

Replies

  • Apr 23, 2025, 3:53 PM

    @montyontherun the nice thing about how raycasting works is each vertical slice needs to know NOTHING about any of the others so it's pretty easy to run them in parallel. I do use a kinda weird algorithm for floor and ceiling though as obviously a horizontal fill (which is normally faster) won't really work with this setup, plus I do variable ceiling/object heights. The math itself is all pretty straightforward though.

    💬 0🔄 0⭐ 0
  • Apr 23, 2025, 3:54 PM

    @raptor85 Ah, I was under the impression this was the 486 version.

    But very cool none-the-less. How about the context-switching costs, doesn't it add up?

    💬 1🔄 0⭐ 0
  • Apr 23, 2025, 3:58 PM

    @montyontherun if doing just a mundane grid based raycast (like a classic raycaster) it's very slightly slower than just executing in sequence, but the gains in speed in doing it parallel go up considerably the higher the render resolution and as I'm using complex moving objects that don't align to the grid those are FAR slower without calculating them in parallel. (the engine supports any polygonal shape at any size/height with full UV mapping of textures)

    💬 1🔄 0⭐ 0
  • Apr 23, 2025, 4:09 PM

    @montyontherun doesn't show up the best in a still but I'm also doing a bit of post processing and blending of a few passes, so it looks less like a "real" saturn/ps1 era game but more like your nostalgia makes you think they looked like. (also has a full dynamic lighting engine).

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Apr 23, 2025, 4:15 PM

    @montyontherun so...funnily enough one of the two "engines" i'm using to get that look is an actual NTSC encoder, I'm encoding and decoding frames to force the color blending and glitching, then the final raster is drawn to the screen as continuous scanlines. I intended to for to look as close to CRT as possible without having the proper hardware (I DO have the proper hardware and do test it though, but I figure not everyone has a bunch of CRTs and a retrotink 4k like I do, lol)

    💬 0🔄 0⭐ 0