Skip to content

Improve the way we detect when we need to redraw the screen #68

@quephird

Description

@quephird

Right now, PPU.tick() returns a Boolean value denoting if we need to redraw the screen. This makes things a little awkward on the callers side; there ought to be a way to instead set some sort of state to denote whether or not to do so, and then have the caller interrogate that.

Also, we currently pass in a screen buffer from the Console instance and have to explicitly call a function to swap it with the PPU's internal buffer after we've executed enough instructions to merit a redraw. This too is awkward; the PPU should be responsible to swapping the buffer at the correct time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions