Home | Reviews | GUIpedia | Forum | Fun500
Jason | NTVDM sucksntvdm uses 50% of the processor, i dont want DigiCom to take up that much processing power, esp. when its a background app | 2010-06-09 | 7:39 AM |
TheWalrus | Re:NTVDM sucksIf 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-09 | 8:26 AM |
Todd | Re:NTVDM sucksTry it on another Windows machine to see if the CPU usage is the same. It could also be a setting in Windows. | 2010-06-09 | 8:55 AM |
TheWalrus | Re:NTVDM sucksIt 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-09 | 10:11 AM |
HorvatM | Re:NTVDM sucksIt'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-09 | 11:57 AM |
Jason | Re:NTVDM sucksi 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-10 | 2:25 AM |
TheWalrus | Re:NTVDM sucksHorvat, 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-10 | 6:27 AM |
BASIC Programming Help
2021 Brandon Cornell