Commit Graph

955 Commits (68ce8f81cc767ee5e7adfb38a9fb2e3388e21633)

Author SHA1 Message Date
Emil Velikov 68ce8f81cc Remove libdrm_amdgpu metrics
There are two alternatives - hwmon entries and gpu_metrics sysfs file.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
Emil Velikov abbe5233ee Remove unused X11/drm auth code
The code was added back in 2020 and seemingly never built. Just drop it
- if needed it can be git reverted at some point.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
Emil Velikov 7ad24b4c0a Simplify cpu/mem/os/glxinfo parsing
Currently we pipeline a bunch of commands alike cat | grep | sed, there
we can do all that job with a single sed invocation - use that.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
Emil Velikov 83ce3ace2d keybinds: move ifdef spaghetti into the header
Drop the ifdef and simplify the .cpp file.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
FlightlessMango 8b801e8435 don't set hide_fsr_sharpness with full 2 years ago
FlightlessMango 0402fa4ab5 mangoapp: fsr_steam_sharpness 2 years ago
FlightlessMango 5c984e7b80 mangoapp: fsr_steam_sharpness 2 years ago
FlightlessMango b1fdbc3a5b Disable gamemode dbus for now 2 years ago
jackun 822bb66629
Fix confusing vendorID with deviceID
OpenGL still needs some work to select the actual render device >:(
2 years ago
jackun 8e21b52acf
Make `get_device_name` return GPU name 2 years ago
jackun c88ef84bf5
Revert "Get device name before system info"
This reverts commit e7de7b5b93.
2 years ago
jackun 8af07b4945
Move `logging()` to Logger struct
Stopgap to use same m_params while waiting for proper multithreading-safe overlay_params fix.
2 years ago
Emil Velikov 42de1edc22 Rework cpu freq node handling
Similar to the prior commit - fscanf directly into the required data
type.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
Emil Velikov 597f78cbee Fixup device/vendor node handling
Currently we readout the data as string only to convert it to hex. In
the error case, we leak the fd for the given nodes.

Read the data as hex directly, error out if that fails and avoid the
leaks.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
Emil Velikov e3de89e475 Couple of whitespace fixes
Automatically picked by my editor, while fixing the warnings with prior
commits.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
Emil Velikov c5748a3154 Reorder Logger() constructor args
Currently the order varies across the struct and constructor. As a nice
reminder GCC will throw a lovely warning at us. Fix the ordering.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
Emil Velikov 30cfe839eb Address signed comparisons warnings
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
Emil Velikov 8ac81477d9 Remove unused parseConfigFile() return type
Was briefly introduced a while ago and the only user was been dropped
since then.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
Emil Velikov dc53cbf0f0 Remove unused-but-set variables
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
FlightlessMango 3f2db318c5 Some fixes for windows compiling 2 years ago
FlightlessMango ae7c5f0f24 Fix hud benchmark 2 years ago
Alessandro Toia 9b668babdc gamepad: add bool is_charging 2 years ago
Alessandro Toia 6db23968ee gamepad: fix 8Bitdo counter 2 years ago
Alessandro Toia 74b328d209 gamepad: add option to disable icon and show capacity instead 2 years ago
Alessandro Toia 5c92c32491 add gamepad_battery to legacy elements 2 years ago
Alessandro Toia 7d90ef8169 GAMEPAD: add 8Bitdo support 2 years ago
Alessandro Toia a484f32e57 GAMEPAD: remove unsed variables 2 years ago
Alessandro Toia a8ab4e2991 GAMEPAD: remove unused param and change xone to xbox 2 years ago
Alessandro Toia 4be3ba20c2 GAMEPAD: add battery reporting for gamepad devices
(xone,xpadneo,ds4,ds5,switch)
2 years ago
jackun a029dfaaf2
Don't hide gpu_metrics behind HAVE_LIBDRM_AMDGPU 2 years ago
FlightlessMango 93f389dd62 clean up frametime_data 2 years ago
FlightlessMango 3a667ab66b Revert FPS calc 2 years ago
FlightlessMango cf8ba8fd63 mangoapp: clean up msg_size 2 years ago
FlightlessMango d82738b03c mangoapp: use GAMESCOPE_FOCUSED_APP_GFX instead 2 years ago
FlightlessMango 68f40c56cc only shrink frametime graph on mangoapp 2 years ago
jackun e555a942fb
Use single IO stats instance 2 years ago
FlightlessMango e12042ca3d mangoapp: adjust for changed msg size in gamescope 2 years ago
FlightlessMango fa133940c8 Fix min/max frametime 2 years ago
Alessandro Toia fb97530965 cpu: Fix not reporting amd cpu power 2 years ago
FlightlessMango e289a55c6f mangoapp: make sure steam_focused is false when mangoapp_steam 2 years ago
FlightlessMango 316914da8d mangoapp: fixed mangoapp not respecting no_display 2 years ago
FlightlessMango 5cdedc4671 mangoapp: gamescope debug graphs 2 years ago
jackun 4608fa5e3a
vkGetInstanceProcAddr(instance, "vkGetInstanceProcAddr") should return our vkGetInstanceProcAddr not the next in the chain. 2 years ago
FlightlessMango 7740e8430f mangoapp: clean up unused variable 2 years ago
FlightlessMango 44a335a809 mangoapp: mangoapp_steam bool 2 years ago
FlightlessMango 6521eaa82d mangoapp: hide hud by default 2 years ago
Alessandro Toia 056f7b0e29 Check if battery status is full 2 years ago
FlightlessMango 17867f2a6d Battery: show remaining if > 1.f 2 years ago
FlightlessMango b11714a326 mangoapp: hide fsr sharp when off 2 years ago
FlightlessMango 339f5c0d11 mangoapp: hide when steam is focused 2 years ago