payonel / ocvm

OpenComputer Emulator
41 stars 7 forks source link

main.cpp: Add a 50ms pause after every continue. #33

Closed AmandaCameron closed 4 years ago

AmandaCameron commented 4 years ago

This makes OCVM easier on the CPU when idling and not doing much in the client.

payonel commented 4 years ago

it's 4% of my cpu when idling. also there is a worker object i used in other places for a similar thing. i'll consider using that here if no other work has been done

AmandaCameron commented 4 years ago

I've sent you a PM on IRC with an offending ocvm instance. Without thie change, it'll eat an entire CPU on me. I realised it's not exactly idle, but still it shouldn't be in the middle of any busywork or similar.

AmandaCameron commented 4 years ago

This is largely irrelevent with some other changes @payonel did -- closing it.