Skip to content

Avoid clearing the color buffer for occluded regions #162

Description

@Dawoodoz

A big part of the total rendering time is spent on clearing the color buffer with a sky color. This could be made faster by not filling blocks of pixels that will be fully covered by 3D objects according to the occlusion system. Then the color buffer is cleared using a method sending callbacks for pixel regions to fill, which can be optimized to reduce the number of rectangular regions.

This can also be used to draw a much more realistic sky when there are not too many overlapping pixels to fill.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions