08-18-2023, 01:19 AM
Hi!
I wondered why Tilengine didn't have vertical raster effects or per pixel effects while the Commodore Amiga can do stuff each 8 pixels, or less in demos.
Well, I try to create my own graphics engine in Nim with not only horizontal raster effects, but also vertical and both at once.
Aaaand well... It hurts performances a lot. It now makes sense why that kind of feature isn't implemented.
But I wonder about another thing, how do you do to reach such high performances to draw at least a simple tilemap? I hardly go under 7ms per frame drawing for one layer and a 384x216 screen.
I also read Tilengine's code to understand how rendering is done, maybe I didn't understood well, but it seems you draw each scanlines each times as the number of layers. is it that?
I wondered why Tilengine didn't have vertical raster effects or per pixel effects while the Commodore Amiga can do stuff each 8 pixels, or less in demos.
Well, I try to create my own graphics engine in Nim with not only horizontal raster effects, but also vertical and both at once.
Aaaand well... It hurts performances a lot. It now makes sense why that kind of feature isn't implemented.
But I wonder about another thing, how do you do to reach such high performances to draw at least a simple tilemap? I hardly go under 7ms per frame drawing for one layer and a 384x216 screen.
I also read Tilengine's code to understand how rendering is done, maybe I didn't understood well, but it seems you draw each scanlines each times as the number of layers. is it that?