How would I get all the nearest frames to a frame?

I don’t think that function is gonna help me make the renderer more optimized.

Because I don’t want to loop through all pixels again.

I am pretty sure there is a better way to do this.

Well I go to a game dev course and do c++ and what they have shown me so far was that in the rendering you have to go threw all sprites (pixels) and check if there were any detection. Sorry if this didn’t help but I wouldn’t know any better optimized render system in your case.

My renderer works like the renderer in the game “doom”.

And the game “doom” is like the most optimized game, I think even a calculator can run it.

The problem is, I can’t disable roblox default renderer and use my renderer.

I think I am gonna make another post about how to make my renderer more optimized.

Thanks for helping me tho.

But you gotta remember your working on a game engine that has default rendering and everything. And that “doom” was created from scratch and they created their own system with minimal memory of sprites to make it run on calculators.

Yea, I am not trying to make a game using a custom renderer. I am just trying to make a renderer that is optimized as a showcase.

Thanks for helping me tho.