Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Add some metadata to profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver-makes-code committed Jan 22, 2024
1 parent ee8aede commit 978cc53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Client/Rendering/World/ChunkRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ public override void Render(double delta) {
visited.Add(pos);
}
}

Profiler.SetCurrentMeta($"{visited.Count} / {renderSlots.Length} ({(int)(visited.Count / (float) renderSlots.Length * 100)}%)");

// foreach (var slot in createdRenderSlots)
// slot.Render(delta);
Expand Down
2 changes: 2 additions & 0 deletions Common/World/VoxelWorld.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ public void Tick() {
//Console.WriteLine($"Moving entity {entity.ID} to chunk {entity.chunkPosition}");
}
}

Profiler.SetCurrentMeta($"{GlobalTickables.Count} tickables, {WorldEntities.Count} entities");
}
}

Expand Down

0 comments on commit 978cc53

Please sign in to comment.