View Single Post
Old 19 December 2019, 11:49   #135
VladR
Registered User
 
Join Date: Dec 2019
Location: North Dakota
Posts: 741
I just watched the YT vid of StarGlider 2 and didn't notice super high framerates. Very often it fell below 5 fps (possibly 2-3). Few things I noticed:

- ~60% of screen is covered in HUD
- of remaining ~40%, half is empty horizon, leaving ~20% for 3D objects
- of the ~20%, about half is mostly empty due to view distance
- leaving about ~25 scanlines where most of 3D object's scanlines are drawn
- and of those 25 scanlines, majority is a checkerboard that only needs 4 vertices transformed, the rest is merely interpolated via bitshifting resulting in an opportunity to write a specialized checkerboard function that gives an illusion of ~64 polygons, when in reality it's just one.

Since most of the time the objects are thin, couple pixels wide, there's no point in spinning Blitter up, just simple SW rasterizing for each scanline (1-6 pixels in distance)

Highly likely, there's several object-specific drawing routines. Noticed several candidates right in first viewing.
VladR is offline  
 
Page generated in 0.04595 seconds with 11 queries