Kill task or free mem?

Started by Sinjin, December 28, 2023, 20:42:31

Previous topic - Next topic

Sinjin

For exmaple, when I play Rimworld for some hours and I try to quit it, sometimes it get stuck. What is the difference in freeing memory by yourself (in a program) or let windows just do it by killing a task? It seems much more effecient when you just end the task. Since when does it use memory to free memory? lol

William

#1
alright, on my linux platform and i believe on windows, the task manager or system monitor when an application has been killed/terminated, memory and system resources are restored and free'd. so the memory it had used is returned so other applications can use it and the cpu is no longer processing execution of that applications code (whether it was or not)

that is from  my understanding and that i had wondered that myself. the rest, the application/program using more memory when closing, that is the application and should be asked on their forums.
im still interested in oldschool app/gamedev