Skip to content

Chunk data loading is blocking event loop #679

@dImrich

Description

@dImrich

I don't understand why is everything except ChunkBuilder and few other things done in main thread. ChunkBuilder's work only takes ~1ms to complete and is done on different thread. On my low end cpu (i5-2400) method load_chunk19_to_117 is taking 4-6ms to complete and in some weird cases even 30ms which is eating the whole frame budget when chunk packets arrive. Is it possible to load and process chunk data on different thread? I can't see why it wouldn't be possible. Stevenarella in this state is just unusable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance improvements or bugs

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions