Home | Reviews | GUIpedia | Forum | Fun500


JasonNTVDM sucks
ntvdm uses 50% of the processor, i dont want DigiCom to take up that much processing power, esp. when its a background app
2010-06-097:39 AM

TheWalrusRe:NTVDM sucks
If I remember correctly NTVDM runs at high priority at default, you could set it to a lower priority in the task manager to prevent it from hogging the CPU. It wouldn't reduce the CPU usage, but it would at least prevent it from affecting the performance of other programs. I haven't used NTVDM ever since Windows 7 came out, because I'm on the 64-bit version. So my knowledge about it is bit "rusty". 
2010-06-098:26 AM

ToddRe:NTVDM sucks
Try it on another Windows machine to see if the CPU usage is the same. It could also be a setting in Windows.
2010-06-098:55 AM

TheWalrusRe:NTVDM sucks
It could also be the program you're running under NTVDM. For example, if it's using a loop to check for events, without any delay in the loop so it's constantly running code, it'll use more CPU. I know a lot of DOS programs do this, since in plain DOS no other programs would be running at the same time. It's not only bad for multitasking environments, it also drains battery faster on laptops when the CPU has to work more.
2010-06-0910:11 AM

HorvatMRe:NTVDM sucks
It's not only bad for multitasking environments, it also drains battery faster on laptops when the CPU has to work more. True. DOSBox is even worse in this regard. Maybe that's why NTVDM doesn't update the screen so often? But if you're using FreeBASIC, you don't really have a choice because there's no ON KEY. Which sucks anyway because you are forced into using GOSUB with it.
2010-06-0911:57 AM

JasonRe:NTVDM sucks
i found out how to use start command: START "DigiCom" /LOW /MIN But i dont know how to minimize it to the notification area
2010-06-102:25 AM

TheWalrusRe:NTVDM sucks
Horvat, if you're using FreeBASIC you can add a "SLEEP" statement to your loops to reduce CPU usage. Quoted directly from the FreeBASIC help file: "Call Sleep with 25ms or less to release time-slice when waiting for user input or looping inside a thread. This will prevent the program from unnecessarily hogging the CPU." I do that all the time, and it really does reduce CPU usage.
2010-06-106:27 AM

BASIC Programming Help


2021 Brandon Cornell