© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•17mo ago•
2 replies
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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Questions/concerns about memory usage in my project
C#CC# / help
16mo ago
Optimizing Memory Usage
C#CC# / help
4y ago
✅ Accessing memory pointers in C#
C#CC# / help
3y ago
🖥️ C# WinForms + DTO (with COM Object) → 🔺 Memory Usage Problem
C#CC# / help
6mo ago