FlightlessMango
06b46fd5d7
Fix building with mingw
2 years ago
Emil Velikov
eecd451068
meson: build with -Werror=missing-declarations
...
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2 years ago
FlightlessMango
302ceaa3e6
logging: flush after each write
2 years ago
FlightlessMango
25b170d480
logging: change frametime to float
2 years ago
FlightlessMango
d6c7b3c101
logging: write to file while logging
2 years ago
Echo J
ba7e2cb313
Logging: Switch to a different sleep function
...
This fixes a freeze with zink when automatic logging is enabled
I didn't test this on Windows, so please report any issues there
2 years ago
FlightlessMango
e3995ffcbf
mangoapp: compile using static mangohud_library
2 years ago
jackun
dcabe6b33f
Explicitly include array
2 years ago
jackun
021df9b932
`env -u` doesn't affect "piped" commands, use `unset` instead
2 years ago
jackun
a05dd84bf5
Don't use unsetenv in `exec`
...
Hopefully fixes #809
2 years ago
FlightlessMango
5f43fcd121
logger: control: use hudelements
2 years ago
tisim
732439b8e6
changing Logger class from struct pointer to 3 variables
...
removing commented line of code
2 years ago
FlightlessMango
14dcd153ae
control: send msg when log stops
2 years ago
FlightlessMango
ef4ace2e2a
logging: versioning
2 years ago
jackun
0916dadea6
Convert some "printfs" to spdlog
2 years ago
jackun
f680c28f1f
Generalize control over socket so it works with OpenGL too
2 years ago
FlightlessMango
10e17b3153
Use Hudelements params in logging
2 years ago
FlightlessMango
5d6ebe2f38
Logging: use same data for benchmark and summary
2 years ago
Emil Velikov
6f85e388e5
overlay_params: mutate log_interval just after parsing
...
Currently we mutate the log_interval (if mangoapp is built), within the
logger itself. Move that to parse_overlay_config() where the actual
value is being parsed/set.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
3 years ago
Emil Velikov
2b7db32f54
Const annotate overlay_params& across the board
...
Most of the API does not modify it, so annotate it as const.
This makes it earlier to reason what's happening.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
3 years ago
jackun
8af07b4945
Move `logging()` to Logger struct
...
Stopgap to use same m_params while waiting for proper multithreading-safe overlay_params fix.
3 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>
3 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>
3 years ago
FlightlessMango
3f2db318c5
Some fixes for windows compiling
3 years ago
FlightlessMango
8ddbcc3803
don't average log fps
3 years ago
Lukáš Horáček
ed4c8bca80
logging: Initialize total, total_cpu, total_gpu variables
3 years ago
FlightlessMango
9c7f91eccd
clearer headers in summary
3 years ago
Joshua Ashton
f462c7ff76
Write log file in mangoapp
...
This was only writing the summary, which is rather useless.
3 years ago
flightlessmango
0f49c5796a
Merge pull request #671 from Joshua-Ashton/empty_crash
...
Fix crash when no frames were recorded
3 years ago
Joshua Ashton
437563fa77
Fix crash when no frames were recorded
...
This can happen with MangoApp + the Steam Deck UI as it doesn't commit when there is nothing going on
3 years ago
FlightlessMango
53b2a8b842
mangoapp: force log_interval 0
3 years ago
FlightlessMango
6f882115f0
initialize m_log_end
3 years ago
FlightlessMango
77e4d51d87
calculate and show mins in benchmark
3 years ago
FlightlessMango
3366120364
Move calc benchmark into logger
3 years ago
FlightlessMango
6c0965c27b
Write a log summary
3 years ago
FlightlessMango
a1b7b55a54
Use hudelements params in logging
3 years ago
FlightlessMango
aab8730f69
exec: make sure LD_PRELOAD is unset
3 years ago
FlightlessMango
7212c79feb
Logging: push param to benchmark calc
3 years ago
FlightlessMango
f2dcf3f4b2
Rewrite of exec()
3 years ago
FlightlessMango
5fee3bc5e3
Change _params to pointer
3 years ago
jackun
9b6a39dfe9
sed s/gnu_linux/linux/g
3 years ago
FlightlessMango
3ac7772a55
Add universal param
3 years ago
jackun
a82e27d978
Use spdlog macros so logging can be completely disabled during compile-time
3 years ago
jackun
2f807a4c0d
Add `spdlog` wrap and logging
3 years ago
jackun
4f3133c5da
Fix log file using `wine-preloader` etc instead of executable's filename
4 years ago
FlightlessMango
3261d12ad7
Add checking cpu scheduler
4 years ago
FlightlessMango
1a8689fbba
Add gpu power to logs
4 years ago
FlightlessMango
abe45c7485
Check log stream before writing
4 years ago
Witold Baryluk
4f20da781d
Improve code for program name extraction
...
This cleans up the code, as well fixes the bug of not setting
program_name if the MANGOHUD_CONFIG env is specified.
Instead of global variable, that could be not-initialized
use a function to get a program name in logging.
While at it, revamp code and separate things into own functions,
and return by value, and make them easier to use / share code.
4 years ago
Alessandro Toia
a061ca060f
__gnu_linux__ shouldn't be caps
4 years ago