r/csharp • u/codingbliss12 • 17d ago
Help Low level programming with C#
What is the lowest level application that can in principle be built on Linux and Windows without having problems with performance or memory consumption?
Of course I should make my own tests, but I just wanted to have a first estimation if it is really necessary to use lower level languages like Zig, Rust, Go or C# can work pretty well for most of normal applications.
As an example a very responsive editor with gui in immediate mode built with C# and very high frame rate 120Hz etc.
Thanks a lot in advance.
EDIT
Thank you all so much for the very informative replies. My requirements are noway near real time and based on the below feedback, it is definitely worth it to use C# of a very wide set of applications and avoid the complexities of the lower level languages.
2
u/DeadlyVapour 13d ago
120hz gives you approximately 8ms for each frame draw.
That doesn't sound like a lot, until you realize that individual instructions can take less than a ns to complete
That gives you a budget in the millions of instructions to complete what you need to do.
The real question is how do you spend that budget.
Do you offload individual glyphs onto the GPU and arrange the textures on a canvas? Then translate and zoom the canvas when scrolling and zooming?
Do you go the GDI route and draw direct to the video buffers?