Commit Graph

271 Commits

Author SHA1 Message Date
Bartosz Taudul
2435a76caa Don't set dpiScale if not doing anything with it. 2024-09-28 14:01:18 +02:00
Bartosz Taudul
9f682c6015 Do not perform DPI setup when DPI might be not yet known.
Reloading fonts is a fairly lenghty operation (~30-50 ms), so avoid doing
it twice in a row.
2024-09-28 13:55:24 +02:00
Bartosz Taudul
04b921e200 Cosmetics. 2024-09-28 13:54:10 +02:00
Bartosz Taudul
00f7beee43 No connections allowed on emscripten. 2024-09-18 19:30:54 +02:00
Bartosz Taudul
20905406da Don't use obsolete ImGui functionality. 2024-09-18 19:13:26 +02:00
Bartosz Taudul
d46eebf794 Trim address entry field.
Sometimes a stray whitespace may be inserted in the address field, for
example when copying and pasting from somewhere else.
2024-09-09 20:41:28 +02:00
Bartosz Taudul
f1bfbb9821 Allow easy retrieval of git ref from the about dialog. 2024-09-08 17:47:46 +02:00
Bartosz Taudul
1950040461 Print git ref in the about dialog. 2024-09-08 14:23:05 +02:00
Bartosz Taudul
64f2008cc1 Disable transparency on collapsed windows title bars. 2024-09-07 18:03:38 +02:00
Pavel Šmejkal
893754638c Fix achievement mgr crashing on uninitialized data
Both the achievement manager and the achievement data were globals in
separate compilation units. Order of initialization is not defined in
that case which sometimes caused the mgr to load uninitialized data and
crash when an achievement should have been achieved but was not found.
2024-07-17 21:57:16 +02:00
Bartosz Taudul
9688152505 Add dynamic colors, force colors, shorten name to global options. 2024-06-30 20:13:11 +02:00
Bartosz Taudul
50f5345ea5 Add a help marker for the target FPS setting. 2024-06-16 12:52:17 +02:00
Bartosz Taudul
959ab53529 Add global settings achievement. 2024-06-16 12:45:11 +02:00
Bartosz Taudul
fc08f09b94 Switch the achievement category to show the selected achievement. 2024-06-08 13:44:23 +02:00
Bartosz Taudul
7dbb3c592f Fine-tune achievements window size. 2024-06-08 13:20:09 +02:00
Bartosz Taudul
16bc01551e Mark categories that need attention. 2024-06-08 12:45:19 +02:00
Bartosz Taudul
3f2d28407b Animate achievements star button when attention is needed. 2024-06-07 23:53:27 +02:00
Bartosz Taudul
6aa9401b95 Add achievement wrapper function to TracyView. 2024-06-07 23:53:26 +02:00
Bartosz Taudul
aff60a6a36 Mark the initial achievement as achieved on startup. 2024-06-07 23:53:26 +02:00
Bartosz Taudul
cddab58b0d Add achievements processing logic. 2024-06-07 23:53:26 +02:00
Bartosz Taudul
02ad97ff3f Disable achievements UI on emscripten. 2024-06-07 23:53:25 +02:00
Bartosz Taudul
2e2e6257d7 Show/hide achievements list window. 2024-06-07 23:53:25 +02:00
Bartosz Taudul
bf0226fb64 Update screen only when achievements notification is animating.
The NeedsUpdate() method will be useful in future.
2024-06-07 23:53:25 +02:00
Bartosz Taudul
3886111e70 Add achievements notification. 2024-06-07 23:53:25 +02:00
Bartosz Taudul
2cea5706d5 Add initial achievements popup. 2024-06-07 23:53:25 +02:00
Bartosz Taudul
2663ce1a4a Add warning about memory limit. 2024-05-05 20:33:35 +02:00
Bartosz Taudul
56c52b8d8f Add memory limit global settings. 2024-05-04 16:53:40 +02:00
Bartosz Taudul
e85457815e Conditional framerate limiting on Wayland. 2024-03-29 21:56:54 +01:00
Bartosz Taudul
c21170cc01 Add config option for reduced render rate. 2024-03-29 21:54:31 +01:00
Bartosz Taudul
5b2cce0a02 Push IsBusy() callback to Backend. 2024-03-24 17:39:55 +01:00
Bartosz Taudul
9f9cd04761 Add function to determine if the program is busy. 2024-03-24 17:38:45 +01:00
Bartosz Taudul
776b08f2e0 Split core server files from the UI. 2024-03-21 23:04:38 +01:00
Bartosz Taudul
578759384d Make sure first DPI setup is run. 2024-03-16 01:16:25 +01:00
Bartosz Taudul
8ebe62ed85 Fix welcome window resizes. 2024-03-15 20:25:00 +01:00
Bartosz Taudul
55f9341aec Scale ImGui windows when DPI changes.
Code is directly lifted from ImGui, with certain known caveats.
2024-03-15 20:19:32 +01:00
Bartosz Taudul
18f2631e6e Remove AUTHORS file. 2024-03-13 19:14:59 +01:00
Bartosz Taudul
c0789c20cb Add CppCon 2023 video. 2024-03-07 17:49:39 +01:00
Bartosz Taudul
9ccc754143 Fix macos, 2024-03-02 00:30:50 +01:00
Bartosz Taudul
746b6c6246 Don't ignore user scale when DPI scale changes. 2024-03-02 00:21:08 +01:00
Bartosz Taudul
b329eb1fcc Change way of updating fonts in View.
This makes the whole process more easy to follow. It also fixes a crash
bug that was occuring when Wayland output scale changed.
2024-03-01 23:43:53 +01:00
Bartosz Taudul
b6562f1784 Merge pull request #715 from YaLTeR/fix-wayland-scale
Fix and update Wayland scale handling
2024-02-24 11:45:35 +01:00
Bartosz Taudul
5461427493 Print error message when opening a trace from command line fails. 2024-02-03 16:25:01 +01:00
Ivan Molodetskikh
16434f116c Add a way for Backend to signal scale changes
On Wayland the scale now changes to the correct value as the Tracy
window is moved across monitors.

If the scale is overridden from environment, it does not change, just
like before.
2024-01-24 12:34:23 +04:00
Bartosz Taudul
b262cb2428 Handle load failure exceptions. 2023-12-31 14:16:06 +01:00
Bartosz Taudul
d64307be91 Move bad version popup out of file selector ifdef check. 2023-12-31 13:54:04 +01:00
Fabio Arnold
ed54848536 Fix macOS DPI scaling 2023-08-23 12:24:22 +02:00
Bartosz Taudul
c689e9e0aa Adjust language to no longer specify "all cores". 2023-08-05 12:08:29 +02:00
Bartosz Taudul
c79154c87b Extract processing client broadcast messages to a separate function. 2023-05-07 16:11:42 +02:00
Bartosz Taudul
bd2f903c08 Add persistent target FPS option. 2023-05-01 19:09:27 +02:00
Bartosz Taudul
ba41255ccc Adjust wording. 2023-05-01 15:48:33 +02:00