Commit Graph

1252 Commits

Author SHA1 Message Date
FlightlessMango
e39513cfa4 still check PengineName if engine OpenGL 2021-06-24 17:03:55 +02:00
FlightlessMango
7bddec9397 bump to v0.6.4 2021-06-24 12:25:57 +02:00
FlightlessMango
3f120b1fc5 don't set engine to vulkan if already set 2021-06-23 19:53:07 +02:00
Alessandro Toia
0bc6d33a24 Fix frame spikes when using battery parameter 2021-06-19 19:57:07 -07:00
Alessandro Toia
570bef468b Cosmetic changes to engine detection 2021-06-19 15:58:01 -07:00
FlightlessMango
5330573c8c don't rely on std in engine detection 2021-06-17 00:49:46 +02:00
jackun
5f54a9cfe6
Bump to v0.6.3 2021-06-11 23:10:52 +03:00
jackun
ea898ded45
Update workflows 2021-06-11 23:10:30 +03:00
jackun
f529a8a53f
Update build-source workflow 2021-06-11 22:40:36 +03:00
FlightlessMango
94dda243a5 Battery: header include filesystem.h 2021-06-11 21:06:53 +02:00
jackun
d2a594e002
Update build-source workflow 2021-06-11 21:49:02 +03:00
FlightlessMango
b8ca0e377b README: Add vkbasalt, gamemode and battery 2021-06-11 20:48:32 +02:00
FlightlessMango
226330c0d7 Battery: assume unknown status is charging 2021-06-11 20:38:30 +02:00
jackun
9da427d093
Include u2019 (RIGHT SINGLE QUOTATION MARK) glyph by default 2021-06-11 20:22:21 +03:00
jackun
0ee101e0ac
Fix MPRIS ticker, microseconds to nanoseconds 2021-06-11 20:14:03 +03:00
FlightlessMango
a50bbbac22 add battery, fps_limit and resolution to legacy layout 2021-06-11 18:58:11 +02:00
jackun
37d8c75c78 Skip calculating IO stats for first sample
Or you get high read/write speeds averaged over process' whole lifetime.
2021-06-11 17:55:09 +02:00
flightlessmango
428ddf4e8a
Merge pull request #536 from flightlessmango/battery_test
Battery info and font awesome icons
2021-06-10 20:52:58 +00:00
FlightlessMango
2e5fc31711 use vulkan to determine if zink 2021-06-10 22:41:06 +02:00
FlightlessMango
92282bcec2 convert frametime from ns to us 2021-06-10 19:40:15 +02:00
Joshua Ashton
815097718e Use nanoseconds to calculate fps
No need to round this earlier on.

Removes an unnecessary implicit float -> double conversion in the calculation also
2021-06-10 19:40:15 +02:00
Joshua Ashton
1f0119bc91 Use raw clocks if available
Avoids NTP synchronization having impact on frametime pacing.
2021-06-10 19:40:15 +02:00
Brisse89
9a5d63cbf1 Update README.md (#513)
* Update README.md

Add Debian install instructions.
2021-06-10 19:40:15 +02:00
medusalix
560930214a Fix CPU power calculations 2021-06-10 19:40:15 +02:00
Alessandro Toia
5c48b4729c Change param to battery, add param for icon, hide power when plugged in 2021-06-08 16:04:33 -07:00
FlightlessMango
370a2d5da6 Only use MANGOHUD=1 in script 2021-06-08 18:28:54 +02:00
jackun
a0a57038c1
Fix redefinition of 'open'
musl pulls in fcntl.h from somewhere
2021-06-03 09:55:33 +03:00
Alessandro Toia
105ad9c2be Check for batteries only once 2021-05-27 15:40:33 -07:00
Alessandro Toia
500a65dd52 Only display battery stats if a battery is present 2021-05-27 15:40:33 -07:00
Alessandro Toia
a533883a39 Check if there are battieres before attempting to retrieve stats 2021-05-27 15:40:33 -07:00
Alessandro Toia
8960a54813 Change battery path list to array 2021-05-27 15:40:33 -07:00
Alessandro Toia
6833ee3593 Check if battery(s) are fully charged 2021-05-27 15:40:33 -07:00
Alessandro Toia
6c69f68f7f Iterate over n batteries to find energy consumption 2021-05-27 15:40:33 -07:00
Alessandro Toia
e63a5bd472 Iterate over n batteries to find percent 2021-05-27 15:40:33 -07:00
Alessandro Toia
62db1495d6 Scale down icons if font is small 2021-05-27 15:40:33 -07:00
Alessandro Toia
5656001639 Add forkawesome from compressed Base85 TTF 2021-05-27 15:40:33 -07:00
Alessandro Toia
552a85aaaa Only update battery stats if a battery is present 2021-05-27 15:40:33 -07:00
Alessandro Toia
c6074b0f4d Check if there are batteries before checking if they are charging 2021-05-27 15:40:33 -07:00
Alessandro Toia
8980ff46bc When plugged in change battery icon according to percent 2021-05-27 15:40:33 -07:00
Alessandro Toia
5adb4500c7 Install forkawesome font file 2021-05-27 15:40:33 -07:00
Alessandro Toia
b89b9b8109 Add ForkAwesome Icons 2021-05-27 15:40:33 -07:00
Alessandro Toia
1ab25220c6 Add param to check battery power and percent 2021-05-27 15:40:33 -07:00
FlightlessMango
a90c897feb Check battery info 2021-05-27 15:40:33 -07:00
Alessandro Toia
d556e8e357 Improve Zink detection 2021-05-27 15:38:44 -07:00
Kira Bruneau
d8a1ddf253
meson: Add vulkan_datadir option (#522)
This option enables using system Vulkan headers when it doesn't share
the same datadir as MangoHud. This is specifically an issue in NixOS
where packages are built into their own isolated directories in
/nix/store.

For example:
/nix/store/9g28nz6zh484144mzw670bx82y1ka49a-vulkan-headers-1.2.162.0/share/vulkan/registry/vk.xml

This is currently worked around in the Nix package, by symlinking the
vulkan-headers into MangoHud's install directory:

5debc57760/pkgs/tools/graphics/mangohud/default.nix (L66-L70)

Although, this hack causes the vulkan-headers to be included as a
runtime dependency when they're only needed at build time.

I tried to figure out a way to resolve the datadir automatically, but
found that just adding a new option is probably the best solution for
the following reasons:

- The vulkan.pc file used to resolve dep_vulkan doesn't contain any
information about the datadir.

- The share directory could be resolved relative to the vulkan include
directory and that would solve the specific issue for Nix, but the
datadir could be installed anywhere and that wouldn't be a general
solution.

- I couldn't find a way to resolve the data dir using the XDG Base
Directory Specification because meson doesn't provide a way to access
the necessary environment variables.

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
2021-05-11 18:44:25 +03:00
Alessandro Toia
36ec9ef41a Add round_corners param 2021-04-29 21:06:22 -07:00
jackun
47865573a8
Add option to prepend libdir to library's path in vulkan manifest
"\$LIB" technically breaks json but on the other hand vulkan loader
currently doesn't handle "\\$LIB"
Help with issue #468
2021-04-18 23:03:24 +03:00
jackun
765024227c
[OpenGL] Framerate limit in eglSwapBuffers 2021-04-17 22:29:22 +03:00
Alessandro Toia
ddfcb01c30 Add detection of Zink 2021-04-15 15:40:12 -07:00
jackun
a724e5e294
Fix engine name not showing with engine_version without fps also enabled 2021-04-12 22:42:38 +03:00