Function SetRenderingParameters

From Uzebox Wiki
Jump to: navigation, search
Prototype

void SetRenderingParameters(u8 firstScanlineToRender, u8 verticalLinesToRender);

Description

Dynamically set the number of scanlines to render and also from which scanline rendering should start. This function can be used to temporarily lower the kernel's CPU usage.

Parameters
  • firstScanlineToRender: The NTSC scanline number rendering should start from. Lines starts at zero during VSYNC and goes up to 262. This parameter is usually increased when verticalLinesToRender is lowered to keep the image centered vertically. Default is 20.
  • verticalLinesToRender: The number of lines to render vertically. Must be >= 1 and <= 224.
Returns

Void

Video Modes

All

Since

V3.3

Notes

Don't set the lines to render to zero or calls to WaitVsync() will hang.

Example:

//set first scanline to render to 112, and render 1 line
SetRenderingParameters(112, 1);