forrestthewoods,
@forrestthewoods@mastodon.gamedev.place avatar

One of the arguments against immediate mode UI is that it will drain your battery. I think that's bollocks!

Here is my "proof of life" test to measure power draw. Preliminary result is that Dear ImGui consumes less power than YouTube. That feels like a fairbar to compare against

I'll of course take some much more rigorous measurements and tests over longer periods of time. This is just the first time I have actual data.

wolfpld,
@wolfpld@mastodon.gamedev.place avatar

@forrestthewoods I wanted a nice graph like you have, and I know it's possible to get it because I have it in Tracy, but it turns out that... there is nothing that would continuously probe the energy measurements to write out a csv on Linux. WTF.

amonakov,
@amonakov@mastodon.gamedev.place avatar

@wolfpld @forrestthewoods @castano I am well aware of the joke that goes like "to learn how to do <X> on Linux, loudly claim 'Linux cannot do <X>! WTF!' and wait to be corrected", and I am not sure what you were looking for when both perf and turbostat can work with RAPL sensors, but I'm curious how you solved it in the end.

wolfpld,
@wolfpld@mastodon.gamedev.place avatar

@amonakov @forrestthewoods @castano Googling "repl" or even "intel-repl" does not yield any worthwhile answers. It is not a well-documented topic.

The examples for perf I found produced a single energy consumption value for the given time, and I wanted a graph. There was not an out-of-the-box solution that I could use for this.

While I found some random utilities on github (most were 10 years old), turbostat was not one of them.

miblo,
@miblo@mas.to avatar

@wolfpld @amonakov @forrestthewoods @castano Arch's turbostat package has as its URL https://www.kernel.org which'll probably explain why it's not on github as a mere random utility. It seems powerful from my first run and a glance at the manpage. Cheers for mentioning it, Alexander!

wolfpld,
@wolfpld@mastodon.gamedev.place avatar

@miblo @amonakov @forrestthewoods @castano I wasn't looking for github specifically, I was looking for energy monitoring in general, so that's not really an issue.

There are all these random little utilities that were maybe announced on some mailing list 15 years ago, and you have no chance of finding them unless you know exactly what you are looking for.

wolfpld,
@wolfpld@mastodon.gamedev.place avatar

@miblo @amonakov @forrestthewoods @castano The user-friendly GUI applications that monitor the system don't even show all this information that is available.

The system monitor in KDE has fields for GPU usage or GPU memory allocation, but these fields don't show anything. I have to use nvtop to monitor this data. I don't understand why these things can't just work.

There's so much to improve and so little time.

miblo,
@miblo@mas.to avatar

@wolfpld @amonakov @forrestthewoods @castano Yeah, I was actually interested myself in this power stuff just the other day, knew about powertop from my laptop days, but was disappointed to find it didn't do it for me on this desktop. So gave up, not having come across turbostat.

Here's the closest I can get to .csv just from turbostat itself: https://miblo.net/_files/turbostat_1714048427.txt

sudo turbostat --quiet --enable Time_Of_Day_Seconds --show Time_Of_Day_Seconds,power --Summary --out turbostat_$(date +%s)

wolfpld,
@wolfpld@mastodon.gamedev.place avatar

@forrestthewoods Ok, I put something together and here's my graph. The measurement is done with RAPL over the whole CPU package (supposedly).

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ethstaker
  • DreamBathrooms
  • cubers
  • mdbf
  • everett
  • magazineikmin
  • Durango
  • Youngstown
  • rosin
  • slotface
  • modclub
  • kavyap
  • GTA5RPClips
  • ngwrru68w68
  • JUstTest
  • thenastyranch
  • cisconetworking
  • khanakhh
  • osvaldo12
  • InstantRegret
  • Leos
  • tester
  • tacticalgear
  • normalnudes
  • provamag3
  • anitta
  • megavids
  • lostlight
  • All magazines