Skip to content

Optimize map rendering #3

@lumiscosity

Description

@lumiscosity

Right now, the map is always fully redrawn every time something as minute as placing a tile happens. It also doesn't store information between scroll states, opting to fully redraw the map. It would be wise to draw the entire map to a full pixmap and keep it in memory, only redrawing the parts that need to be redrawn. QGraphicsViews should already have built-in scrollbars, there's no need to reimplement scrolling...

Down the line, it could be interesting to provide an alternative QRhi backend. Right now the API is fairly experimental, but we could stand to gain a lot of performance improvements from hardware rendering.

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