mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-02-21 15:01:29 +01:00
Add some debug logging
This commit is contained in:
parent
b422640a76
commit
61b003b7a9
@ -188,6 +188,9 @@ public void doWork() {
|
||||
|
||||
private void processTile(int x, int z) {
|
||||
Vector2i tile = new Vector2i(tileMin.getX() + x, tileMin.getY() + z);
|
||||
|
||||
Logger.global.logInfo("[%s] Processing tile %s".formatted(Thread.currentThread().getName(), tile));
|
||||
|
||||
ActionAndNextState action = tileActions[tileIndex(x, z)];
|
||||
TileState resultState = TileState.RENDER_ERROR;
|
||||
|
||||
|
@ -133,6 +133,8 @@ public BmMap(String id, String name, World world, MapStorage storage, ResourcePa
|
||||
public void renderTile(Vector2i tile) {
|
||||
if (!tileFilter.test(tile)) return;
|
||||
|
||||
Logger.global.logInfo("[%s] Start rendering tile %s".formatted(Thread.currentThread().getName(), tile));
|
||||
|
||||
long start = System.nanoTime();
|
||||
|
||||
hiresModelManager.render(world, tile, lowresTileManager, mapSettings.isSaveHiresLayer());
|
||||
@ -140,6 +142,8 @@ public void renderTile(Vector2i tile) {
|
||||
long end = System.nanoTime();
|
||||
long delta = end - start;
|
||||
|
||||
Logger.global.logInfo("[%s] Finished rendering tile %s in %d nanoseconds".formatted(Thread.currentThread().getName(), tile, delta));
|
||||
|
||||
renderTimeSumNanos += delta;
|
||||
tilesRendered ++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user