View Single Post
Old 17 February 2024, 18:39   #75
aros-sg
Registered User
 
Join Date: Nov 2015
Location: Italy
Posts: 191
I tried how cannonball looks with half vertical resolution (320 x 112) and maybe it would make sense to have an option for this as it still looks quite nice actually. Especially in motion. Even better (or less bad) would be if the road stayed hires (if it was done with 2 planes reserved for road only) and the Ferrari was done with normal/hires Amiga hw sprite.

cannonball/src/main/sdl2/rendersurface.cpp:

Code:
void Render::draw_frame(uint16_t* pixels)
{
    uint32_t* spix = screen_pixels;

#if 0


    // Lookup real RGB value from rgb array for backbuffer
    for (int i = 0; i < (src_width * src_height); i++)
        *(spix++) = rgb[*(pixels++)];
#endif

#if 1
    for (int y = 0; y < src_height; y++)
    {
         for(int x = 0; x < src_width; x++)
	 {
	   *(spix++) = rgb[pixels[x]];
	 }
	 
	 if ((y % 2) == 1) pixels += src_width * 2;
    }
    
#endif
}
aros-sg is offline  
 
Page generated in 0.05515 seconds with 11 queries