Coder Social home page Coder Social logo

Power management about mamesaver HOT 5 CLOSED

mika76 avatar mika76 commented on May 24, 2024
Power management

from mamesaver.

Comments (5)

mika76 avatar mika76 commented on May 24, 2024

Actually sounds great - I also use this on a laptop and it hits the fan hard. I wonder also, maybe MAME can be run as a lower priority thread? I wonder if that would have an effect?

from mamesaver.

mika76 avatar mika76 commented on May 24, 2024

I wonder if some things mentioned here might also have an effect on how high the CPU usage is while MAME is running... https://wiki.mamedev.org/index.php/FAQ:Performance

MAME itself also has many options that can increase your speed:

  • Lower the sound quality. Try adding -sr 11025 to the command line, which will decrease sound playback quality and use less processor time. This mostly affects games that use discrete audio.
  • Disable the joystick and use the keyboard (-nojoy).
  • Use frameskip to speed up animation. Frameskip skips a certain number of frames per second, so your system does less work. Sometimes the trade-off is choppy animation; sometimes the difference is negligible. Experiment. While playing, press F8 / F9 to control frameskip; or set global frameskip in mame.ini. Some games don't benefit from frameskip though, for example the newer Williams bitmap graphics games or the Atari filled polygon games.

None of these things will help with switching off the screen but might help with the cpu usage while the screensaver is running...

from mamesaver.

mika76 avatar mika76 commented on May 24, 2024

Interesting there seem to be other command line options which could be used maybe to make MAME not so intensive: https://docs.mamedev.org/commandline/commandline-all.html#core-performance-options

from mamesaver.

nullpainter avatar nullpainter commented on May 24, 2024

I think in my case, the 50 Chrome tabs and 3 VS instances may not be helping 😉

I'm less concerned about high CPU during screensaver operation - after all, those can all be set by the user in their mame.ini or in the screensaver configuration - and more about the screensaver not being a good citizen and doing what it ought with power saving.

I've turned my PoC into production-ready code and will send a PR over later today.

It's working really well and I've added logging to make its operation obvious. The only thing I noticed is that after switching from AC to DC and disconnecting external displays, the current MAME instance freezes. Not sure yet whether this is an us issue or a MAME issue. In any case, the sleep timer still runs so probably not something to worry too much about.

from mamesaver.

mika76 avatar mika76 commented on May 24, 2024

Yeah true - all these can be set by the user - plus after playing with the settings none of them really helped - the fan still spun like mad - so not much use there...

from mamesaver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.