C
C#2mo ago
Dobbermann2

Strange memory usage in C# OpenTK project

Hi! I'm developing a voxel engine using C# with the OpenTK Library, however my current bottleneck is memory usage. The visual studio 2019 memory snapshots show a total memory usage of only 250 mb, however, task manager reports a memory usage of a whopping 4 gigs. The memory graph in the performance profiler shows a massive 10 gigs of memory usage, which is far more than task manager reports. Where are these inconsistencies coming from? Aren't they supposed to report the same memory usage? The memory stays consistent when standing still ingame, like it's supposed to, so I think a memory leak is out of question. Where could this extra memory usage be coming from? Could it be some strange openTK implementation that allocates memory?
2 Replies
Dobbermann2
Dobbermann22mo ago
With a single chunk it's even worse
No description
Dobbermann2
Dobbermann22mo ago
500 KB memory usage in snapshot, 195.9 MB memory in graph, 50MB memory usage in task manager
No description
Want results from more Discord servers?
Add your server