Skip to content

Preload world tiles and predraw view chunks in a separate thread #2529

@byorgey

Description

@byorgey

Is your feature request related to a problem? Please describe.
After merging #2515, when viewing a robot moving continuously in a certain direction at either 32 or 64 ticks/s, there are noticeable stutters, presumably due to the game (a) loading new world tiles every time we reach some new ones, and (b) drawing new view chunks as they come into view. This is not a huge problem but it would be super cool if it was smoother.

Describe the solution you'd like
Ideally, we should (a) slightly increase the radius at which we load new world tiles and the radius at which we draw view chunks, and (b) do the loading/rendering in a separate thread, so that by the time we actually need them to render a frame, they are already available.

Although these are quite similar in some ways, the mechanisms by which we achieve them might be different, so it might make sense to split these out into two separate issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-UIInvolves the user interface.Z-FeatureA new feature to be added to the game.Z-PerformanceThis issue concerns memory or time efficiency of the Swarm game.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions