PrepareWorld step takes too long on headless #5024
Labels
Category: Performance
Requests, Issues and Changes targeting performance
Category: Test/QA
Requests, Issues and Changes targeting tests and quality assurance
Topic: Concurrency
Requests, issues, and changes relating to threading, concurrency, parallel execution, etc.
Topic: WorldGen
Requests, Issues and Changes related to facets, rasterizers, etc.
Type: Bug
Issues reporting and PRs fixing problems
loadProcesses.PrepareWorld
currently documents itself as "loops until world is pre-generated or 5 second elapsed," and it's good to its word:Terasology/engine/src/main/java/org/terasology/engine/core/modes/loadProcesses/PrepareWorld.java
Lines 32 to 38 in 2d0c434
The problem is that the HeadlessWorldRenderer looks like this:
Terasology/engine/src/main/java/org/terasology/engine/core/subsystem/headless/renderer/HeadlessWorldRenderer.java
Lines 124 to 126 in b27c8e2
so that loading step always takes five seconds in headless, no matter how much or how little time it takes to generate chunks.
This goes a long way to explaining why even the simplest possible MTE test always takes at least five seconds.
The text was updated successfully, but these errors were encountered: