jackun
5bdfcd493d
[config] Add config file change notifier to OpenGL
5 years ago
jackun
a0f5cb56a2
[config] Guard overlay_params from the thread with mutex
5 years ago
jackun
34184abf2e
[config] loop in the notifier thread and reload configuration file if it is changed
5 years ago
jackun
341aa21b87
[config] Move options map and config_file_path to overlay_params
5 years ago
FlightlessMango
c5dad16612
Listen for modify on config file
5 years ago
jackun
b0f36fad31
Expand paths only
5 years ago
FlightlessMango
b0e1fe9321
[params] set targetFrameTime in params.cpp
5 years ago
FlightlessMango
71b602751d
[meson] option to include_doc
5 years ago
jackun
6e40f9bdd5
Expand tilde to home dir if string param start with `~`
5 years ago
jackun
f7a7256374
Clear options map so reloading config files actually has an effect
5 years ago
jackun
6b4103eae9
[config] Parse Wine application name without absolute path
5 years ago
jackun
abef561573
Disable CPU stat(s) if it failed to initialize
5 years ago
jackun
712590befe
Check if CPU sensor file handle is valid
5 years ago
FlightlessMango
64a42df047
forgot to include functional
5 years ago
FlightlessMango
cbb58ab79c
make sure Xdisplay is closed on shutdown
5 years ago
FlightlessMango
b3286cbe48
check if opengl/vulkan with is_vulkan bool
5 years ago
jackun
13e57578c3
Fix update_hud_info indentation
5 years ago
jackun
154380e056
Don't update time if not enabled
5 years ago
jackun
9a7a4d99e0
Don't update CPU freq/temp if not enabled
5 years ago
jackun
6bbc89a9cc
Don't update CPU stats if not enabled
5 years ago
jackun
16552b25e3
Don't update RAM/IO stats if not enabled
5 years ago
jackun
c850507314
[OpenGL] Initialize MangoHud from glXSwapBuffers even if glXMakeCurrent is skipped for some reason
5 years ago
jackun
fa41e6f882
Always configure vulkan json
5 years ago
jackun
ad64bf345d
Update build scripts, again
...
Install to $prefix$libdir/mangohud by default.
5 years ago
jackun
50cef9621b
Remove ~/.local/share/MangoHud/MangoHud.conf support
5 years ago
jackun
57f3b3470d
Remove param_unit()
5 years ago
jackun
2e3f8077cb
Remove parse_output_file
5 years ago
jackun
da9120f971
Add parse_signed() for gl_sync
5 years ago
jackun
125dbc1403
[OpenGL] Allow swap interval of -1 for adaptive sync, if supported
5 years ago
FlightlessMango
e24f5dfc8b
added log_duration param and updated readme
5 years ago
FlightlessMango
b4cd837328
[OpenGL] custom font file
5 years ago
FlightlessMango
8641392ca7
added MANGOHUD_FONT to params as font_file
5 years ago
FlightlessMango
d1bdf71580
added MANGOHUD_OUTPUT to params as output_file
5 years ago
jackun
4adb6ed25f
Convert tabs to spaces in cpu.cpp/cpu.h
5 years ago
jackun
72d7f6ef71
Print also a reason for skipping a config file
5 years ago
jackun
31a651133c
[OpenGL] Cleanup stderr output a little
5 years ago
jackun
bbfad2e073
[OpenGL] Parse and initialize configuration just once
5 years ago
jackun
a52dce875f
[OpenGL] Keep glClipControl local to imgui_impl_opengl3.cpp
5 years ago
jackun
05d61ee77e
Init CPUStats just once
5 years ago
FlightlessMango
e68dd48f3f
forgot one refresh_config
5 years ago
FlightlessMango
fe69ec2955
changed refresh_config to reload_cfg
5 years ago
FlightlessMango
501d7d74d2
install example config with meson
5 years ago
jackun
5caeb10882
[OpenGL] Apply swap interval from glXMakeCurrent
5 years ago
jackun
297b44bfe6
[OpenGL] Force-load libGL.so.1 with dlopen() if dlsym fails to find functions
5 years ago
jackun
e0ce0493f7
[OpenGL] Set swap interval (vsync) with `gl_vsync` param
5 years ago
FlightlessMango
8133048e9c
Add blank configuration for project_name and layer_suffix with build.sh
5 years ago
FlightlessMango
8153e29eb3
forgot to add '/' to end of path
5 years ago
FlightlessMango
8599484032
configure .json files with meson
5 years ago
jackun
37e34335ae
Sprinkle NDEBUG over gl debug prints
5 years ago
jackun
ad598f7ec4
[OpenGL] Fix double-free with ImGui context
5 years ago
jackun
f99129f9de
Libdirs: once more, with feeling
5 years ago
jackun
4761078133
Fix small font for gl
5 years ago
jackun
c88b930a37
Match gl PushPopStyle count with vulkan's
5 years ago
jackun
bc7db582bd
Single ImGui context for OpenGL
...
Seems only VAO is not shareable between OpenGL context
but that gets recreated every render anyway.
5 years ago
jackun
373bba5fcf
Keep time outside the table or it gets clipped if using too fancy a format
5 years ago
FlightlessMango
8bf8723ad5
added param text_color
5 years ago
FlightlessMango
77b3033cc7
Removed frametime_alpha and replace it with an overall alpha for text and frametime
5 years ago
FlightlessMango
a1eafc3403
Install .so into subdirectory in libdir
5 years ago
jackun
a64b6cada2
Build/install scripts: verbose tar output and set files' owner/group to root
5 years ago
FlightlessMango
8558d038d7
refactored the install process
5 years ago
FlightlessMango
ccf870e630
changed offset_x/y to int so it can be negative
5 years ago
FlightlessMango
88ad5de2ab
Fix so preloading doesn't break vulkan layer
5 years ago
FlightlessMango
163c76bea7
added param background_color
5 years ago
FlightlessMango
28e765a6a3
added param frametime_alpha
5 years ago
FlightlessMango
906a8cde23
added param frametime_color
5 years ago
FlightlessMango
a2735693ba
Merge opengl into develop
5 years ago
FlightlessMango
755558ecb9
added param io_color
5 years ago
FlightlessMango
d8b3c3c81f
params for changing color of cpu, gpu, vram, ram and engine text
5 years ago
jackun
5e4bd7b8c8
Keep time outside the table or it gets clipped if using too fancy a format
5 years ago
jackun
b4f1402461
Right align value texts
5 years ago
jackun
e881a1538a
Pre-convert crosshair's color to ImGui's format
5 years ago
jackun
1a8b98e09d
Divide memory sizes by 1024 byte chunks
5 years ago
FlightlessMango
857dcf7fb8
use hmwon freq1/2 instead for amdgpu core/mem clocks
5 years ago
FlightlessMango
274b3e67ca
don't extend hud width if gpu_stats is disabled
5 years ago
FlightlessMango
4d5f62386b
added gpu mem and core clocks to hud
5 years ago
jackun
f8398c3e7a
Add I/O stats
...
Using /proc/self/io 'read_bytes' and 'write_bytes' fields which count only
reads/writes that hit the storage (i.e no cached reads).
5 years ago
FlightlessMango
534ca9416d
Spruced up iostats and change to bool from custom
5 years ago
FlightlessMango
4847cb8e31
Using table for hud layout
5 years ago
jackun
2472e69205
Check if pApplicationInfo is null
5 years ago
jackun
ea8f0ad666
Includes cleanup
5 years ago
jackun
fad35b9540
Just check hwmon sysfs folder for cpu temp sensors
5 years ago
jackun
6bf37f8510
Add "time_format" parameter; update time string every "fps_sampling_period" interval
...
See std::put_time docs for supported formatting
5 years ago
jackun
9a4c9033fa
Support escaping delimiters in MANGOHUD_CONFIG
5 years ago
jackun
417b1aac8d
config: trim only surrounding whitespace
5 years ago
FlightlessMango
58c7831d5c
hud width correction
5 years ago
FlightlessMango
80cff1ac86
Fixed hud width not applying
5 years ago
FlightlessMango
12ba4f9ea5
No need to set hud height manually anymore
5 years ago
jackun
8a348ffbf0
Disable gpu_timing for now
...
Issue #44
5 years ago
jackun
b91be85ff9
Use std::unordered_map and std::mutex instead for object mapping and related cleanups
5 years ago
jackun
54950853b5
Remove redundant 'no_display' code
5 years ago
jackun
d78622a322
Don't enable 'read_cfg' too when 'full' is set in MANGOHUD_CONFIG
...
Could use OVERLAY_PARAM_INTERNAL or something similar but currently
less code to just save the boolean and reset.
5 years ago
jackun
8f66bd7d87
Set stats window height to ImGui::GetCursorPosY()
5 years ago
jackun
2fb0453e28
Create ImGui fonts per swapchain
5 years ago
FlightlessMango
099082affc
Refresh config keybind
5 years ago
FlightlessMango
7593582f4a
Fixed parsing crosshair color function
5 years ago
jackun
9053b63142
Allocate instance_data with "new"
5 years ago
jackun
68e880a101
config: rename param to "read_cfg"
5 years ago
jackun
ad2ed4a99a
config: load highest priority config available only
5 years ago
jackun
80f29aad9d
Allow MANGOHUD_CONFIG to override configuration files' settings.
...
Use `MANGOHUD_CONFIG=some_setting=1` to skip reading the configuration files
and just use the settings specified with MANGOHUD_CONFIG.
Use `MANGOHUD_CONFIG=read_configs,...` to read configuration files too and
add other settings that you would like to override.
5 years ago
jackun
f7e7146883
config: find_last_of can search for multiple characters, doh
5 years ago
jackun
6a45ac84b3
config: sometimes wine exe has forward-slashes instead
5 years ago
jackun
65b90fc01b
config file: respect XDG dirs
...
Other half of #37
5 years ago
jackun
67eab673d8
Override previous setting, std::unordered_map::insert() does not.
5 years ago
jackun
70d0e81c36
Clone vulkan headers if needed
5 years ago
Danilo Spinella
18edd4eb50
meson: Add option to use system vulkan headers
5 years ago
jackun
5c4816efa5
Unused instance_data
5 years ago
jackun
69cf83d3bc
config file: print that config file is skipped if we failed to open it
5 years ago
jackun
3e0eda559d
print if done parsing config file
5 years ago
jackun
6086a6b9ab
config file: try to detect Wine executable's path
5 years ago
jackun
169d5ff99a
Search configs in ~/.config/MangoHud
5 years ago
jackun
08debe5d09
Add per-executable config file support
...
* executable's name + ".conf" in config dir
* "MangoHud.conf" in executable's folder
5 years ago
jackun
90a93fd2fc
Add "get executable's path" function
5 years ago
jackun
74c9803087
config file: if parameter line has no equal sign, default value to 1
5 years ago
jackun
27848bd253
Don't crash if there's nothing to draw
5 years ago
FlightlessMango
d8783d3002
Added time param
5 years ago
FlightlessMango
29bacea97f
Add param option full
5 years ago
jackun
b9ae979a05
Don't interpolate fps limit sleep overhead
...
Random hiccups and game pauses can make it go crazy otherwise.
5 years ago
FlightlessMango
dba31e6a11
Set background alpha color to 1.0
5 years ago
FlightlessMango
e947dae9ed
Fixed fps limiter accuracy
5 years ago
FlightlessMango
c73df54166
Added background_alpha param
5 years ago
jackun
60763420eb
Use defines instead of magic numbers for HUD hotkeys'
5 years ago
FlightlessMango
e81fa5776e
Added crosshair_color param
5 years ago
FlightlessMango
d79d06271f
Repurposed no_display param
5 years ago
FlightlessMango
50cff923e8
Changed vram to display GB from MB
5 years ago
FlightlessMango
3c4fcda623
Added offset x/y in params
5 years ago
FlightlessMango
2590426ef6
Merge branch 'config'
5 years ago
FlightlessMango
a8e4ac84f9
Merge branch 'crosshair'
5 years ago
FlightlessMango
69ed9db4c1
Merge branch 'limiter'
5 years ago
FlightlessMango
f56c53c152
Removed unused header
5 years ago
FlightlessMango
2003ae93c9
Continue parsing overlay params without env
5 years ago
jackun
1fc94f6db5
Remove unused histogram's get_stat()
5 years ago
Georg Lehmann
7a4ffe8206
Vulkan overlay: use the corresponding image index for each swapchain
...
pImageIndices should be a pointer to the current image index
otherwise every swapchain but the first one could have a wrong image index
5 years ago
jackun
b2f20f02d2
Prefix check links too
5 years ago
FlightlessMango
5a62a1b0de
Cleaning up
5 years ago
FlightlessMango
33f48c91be
Apply params from config file
5 years ago
FlightlessMango
ebc49ae8c5
Basic parse config
5 years ago
FlightlessMango
d578d612d4
Renamed overlay_param.c to .cpp
5 years ago
FlightlessMango
47f293a722
Change param keybind vars to KeySym
5 years ago
FlightlessMango
784cb427ff
Use params for keybinds
5 years ago
FlightlessMango
25f4c88175
Change param keybind vars to KeySym
5 years ago
FlightlessMango
e5341dd86b
Use params for keybinds
5 years ago
FlightlessMango
9d8fbe561d
Keybind params for toggle hud and log
5 years ago
FlightlessMango
1a523a735f
Keybind params for toggle hud and log
5 years ago
FlightlessMango
e359058430
Fixed hud being wider than intended
5 years ago
jackun
5f6c3c9190
Fix ImGui::PopStyleColor() being in wrong place
5 years ago
FlightlessMango
c5ea98a243
Added a crosshair and params for it
5 years ago
FlightlessMango
be8dc8929d
Don't use fps limiter unless limit is set
5 years ago
FlightlessMango
148d19422d
Added vsync option
5 years ago
FlightlessMango
cd131e0c39
Add fps_limit param
5 years ago
FlightlessMango
a99720f311
Change to nanoseconds
5 years ago
FlightlessMango
f38389b967
FPS limiter
5 years ago
FlightlessMango
4be6d4c748
Added frametime ms next to frametime graph
5 years ago
FlightlessMango
bd4c402824
Added Frametime label
5 years ago
FlightlessMango
c6d7fdd110
Fixed some issue with calculating hud height
5 years ago
telans
1bc513f572
remove nvidiaSmiThread
5 years ago
jackun
97fcafd030
Check if amdgpu file handles are valid
5 years ago
Georg Lehmann
908d46d6ea
Correctly wait in the fragment stage until all semaphores are signaled
...
This fixes two issues:
- a crash if the application uses more than one semaphore for presenting because the driver expects one stage per semaphore
- the swapchain image could be not ready yet if the semaphores aren't signaled, \#946[1] is possible related
[1] https://gitlab.freedesktop.org/mesa/mesa/issues/946
Signed-off-by: jackun <jack.un@gmail.com>
5 years ago
jackun
3c8376588a
Init gpu stats when VkDevice gets created
5 years ago
FlightlessMango
1e475ac02c
removed unused nvctrl
5 years ago
jackun
46d8a03b50
Use PRId64 for int64_t string format
5 years ago
FlightlessMango
36eba167d8
use nvml for nvidia gpu memory instead of nvctrl
5 years ago
FlightlessMango
35d8f7c829
add ram/vram param options
5 years ago
FlightlessMango
beaac191d1
Displaying used ram and vram on the hud
5 years ago
FlightlessMango
6affdb8c51
fetch nvidia vram used from nvctrl
5 years ago
FlightlessMango
23280e0e78
fetching vram for amd gpus
5 years ago
FlightlessMango
d97719e3d6
get nvidia vram from nvml
5 years ago
FlightlessMango
5201a26d95
detach memory thread when done
5 years ago
FlightlessMango
e3b380b970
changed mem color
5 years ago
FlightlessMango
14ad1e015a
Display memory stats on the hud
5 years ago
FlightlessMango
8ab7cd0f20
Basic memory fetching
5 years ago
FlightlessMango
d20a92a0c4
Write system info to log file
5 years ago
FlightlessMango
68599a02a3
param options for cpu_stats and gpu_stats
5 years ago
jackun
bba8702ff3
Check if engine name is set
5 years ago
jackun
bf45bd9a02
Don't increment cpuData index inline
5 years ago
jackun
6d3d869586
Fix system info and stats parsing
5 years ago
jackun
217b65f0e9
Some cpu/gpu stats parsing fixes
5 years ago
jackun
b5bfd437a6
Add file and string utility functions
5 years ago
jackun
f559730d2f
Return bool from checkNvidia()
5 years ago
telans
539e1bb4dc
saturate the colors a little
5 years ago
jackun
ca0462f817
Revert "Fix Get*ProcAddr functions' exports"
...
This reverts commit 3f036dd3a0
.
5 years ago
jackun
7f6bc9434a
Fix nvml loader's ctor
5 years ago
FlightlessMango
dcb0dcd441
Merge branch 'dynamic_nvml'
5 years ago
FlightlessMango
3d711005d4
Merge branch 'cpu'
5 years ago
FlightlessMango
3d49422325
cleaning up
5 years ago
jackun
90416278e0
Total cpu periods
5 years ago
FlightlessMango
c9e9c2feaf
bring back cpu temp
5 years ago
FlightlessMango
1a60999243
New cpu implementation
5 years ago
jackun
3f036dd3a0
Fix Get*ProcAddr functions' exports
5 years ago
FlightlessMango
ac719b2ffd
Check if nvml is avaible on intel vendorID
5 years ago
FlightlessMango
af17b20bd7
Use vendorID instead of deviceName to detect GPU
5 years ago
FlightlessMango
3e2f33ba1d
nvmlSuccess default false
5 years ago
FlightlessMango
a93eb906e9
Don't increase size if frame_timing is false
5 years ago
FlightlessMango
1b00d29792
Removed unused histogram
5 years ago
FlightlessMango
8cdd9f19cf
Dynamically load nvml library
5 years ago
FlightlessMango
a045ae3b64
Don't build with nvml for non-nvidia
5 years ago
FlightlessMango
a3fb14c0d6
Check nvmlInit() once
5 years ago
FlightlessMango
369b18eb07
Use nvml to display gpu values in hud
5 years ago
FlightlessMango
ef0b3d429e
Basic nvml implementation
5 years ago
jackun
b28e0d2606
Remove unused pipeline stats counters
5 years ago
telans
b67a2aad16
Merge branch 'telans'
...
Remove unused python file
Fix includes
Add package build.sh option
5 years ago
FlightlessMango
d3a588b0b0
Removed unused variables and fixed compiler warnings
5 years ago
telans
678207f052
remove unused mesa-overlay-control.py
5 years ago
telans
e82e3721b7
update header location & duration_env
5 years ago
telans
0287920776
remove unused git_sha1.h
5 years ago
telans
ae08d0cc21
Merge branch 'gui-color'
5 years ago
FlightlessMango
e3008126f3
We don't need to push the default font
5 years ago
FlightlessMango
af99e711b5
Reduced ImGui ItemSpacing
5 years ago
telans
f3bedf3bce
add build script "build.sh"
5 years ago
jackun
ca78a59d54
Removed graph background, plotlines color to green
5 years ago
jackun
64fd81a471
Add Unispace as default font or load a font from file specified by envvar MANGOHUD_FONT
...
Could make built-in font configurable by including some other source file with font data instead of src/font_unispace.c
5 years ago
FlightlessMango
f434f627fa
MangoHud implicit layer manifest
5 years ago
FlightlessMango
dd78c02ed8
MangoHud Standalone
...
Co-authored-by: jackun <jack.un@gmail.com>
Co-authored-by: telans <telans@protonmail.com>
5 years ago