Commit Graph

23357 Commits

Author SHA1 Message Date
Alayan
deff598b6d
Prepare the GUI to recommend video settings
- Add a new dialog that gives some information and asks for the user's preferences
- Ensure that one and only one of the 'Performance', 'Balanced' and 'Graphics quality' checkboxes is active
- Add a new button in video settings to access this dialog
2024-05-19 14:58:58 +02:00
Benau
fcd8cea5cd Remove hardcoded 1 pixel 2024-05-17 12:43:37 +00:00
Benau
02e540ba67 Rename variables to match the coding style 2024-05-17 07:32:42 +00:00
Benau
14c002c7ca Rewrite getSplitscreenWindow to fully occupy the remaining pixels
It fixed render inconsistency when drawing lap
2024-05-17 07:27:18 +00:00
Alayan
37e024f1e1
Make the minimum distance for a LoD transition depend on the object's size
Also:
- Since draw distance is used to account for the object's size, have parameters depending on geometry detail correct for it. The minimum switch distance increases slightly with each geometry detail level.
- Clarify what the formula spreading the distances for each LoD level does
- Adjust slightly the auto-LoD multipliers.
2024-05-14 00:36:47 +02:00
Alayan
91d3bceb03
Ensure the LOD multiplier is applied before the quality limiter 2024-05-13 22:31:05 +02:00
Alayan
10943ac0ff
New auto-LoD formula
Avoid the sudden transitions that characterize the old formula.
2024-05-13 22:05:03 +02:00
Nomagno
0f719d0cc5
Fix #5072 (#5082) 2024-05-12 20:12:56 +02:00
CodingJellyfish
e2c245c420
Fix #4574 (#5080)
* Improve normal accuracy & Fix wrong SSR

* One less sample count
2024-05-12 19:59:49 +02:00
CodingJellyfish
68d9fd2138
Fix #5067 (#5071)
* Blur shadows by distance

* Copy from Bevy
2024-05-12 19:53:47 +02:00
Alayan
ad10bda37e
Add a 7th graphical level preset
Compared to level 6, it increases shadow resolution to 2048 and auto-LoD distances to Ultra.
2024-05-12 18:12:19 +02:00
Alayan
53b6267d9d
Fix #5076 2024-05-12 12:45:26 +02:00
Alayan
3ec2b9a54d
Fix #4166
Based on the alerts for timed challenges:
- Change the timer color when an elimination is coming shortly
- Play a sound when an elimination is coming shortly
2024-05-11 20:39:36 +02:00
Alayan
1c58f0154f
Add graphics settings to the perf report 2024-05-11 20:33:03 +02:00
Benau
f2b61826c9 Allow changing splitscreen layout in race 2024-05-11 17:31:33 +00:00
Alayan
27ae455460
Update the changelog
Add all significant changes since the release of 1.4 that will be included for the 1.5 release.

The changelog for 1.4 remains incomplete and will be updated later.
2024-05-10 19:05:06 +02:00
Alayan
5883a27dfc
Update credits
- Change the order top contributors are presented in
- Credit several noticeable contributors that were missing
2024-05-10 17:35:08 +02:00
Alayan
185772ca4a
Fix a strict-aliasing violation
See #5035, based on a commit by @miller-alex
2024-05-10 15:48:37 +02:00
CodingJellyfish
0542e6b279
Fix #3671 and fix #4254 2024-05-10 12:35:30 +02:00
Alayan
8e49634e77
Move the new quality switch logic to autoComputeLevel
Doing additional checks every frame was wasteful, and this change will also allow to easily adapt this logic to account for an object's size.

Also fix and improve comments
2024-05-08 19:01:55 +02:00
Alayan
e9a75f6c52
Fix #3678
Don't play drive-on sound from materials when the game state is paused.
2024-05-08 17:40:48 +02:00
Alayan
99868d5897
Fix #5026
The SFX manager and SFXOpenAL would check if SFXs are enabled before pausing (looping) sound effects, so disabling SFXs in the options would fail to stop looping SFxs.

Furthermore, 'OnSoundEnabledBack' would pause all looping SFXs. This commit checks for the pause status of the World (if applicable) to decide if the looping SFXs should be immediately resumed (networking) or not (real pause).

Also clean some comments and move some code around.

This patch doesn't address sound resuming when going from the pause menu to the options in networked mode, whereas it doesn't in a normal race. This is what caused the bug to trigger in the first place, but it's very minor by itself and the design of the SFX code could have triggered other future issues too.
2024-05-08 17:21:39 +02:00
Alayan
8dbf0a9922
Add geometry detail to the graphics presets 2024-05-07 18:27:15 +02:00
Alayan
e83fdc9324
Display a basic summary of benchmark results 2024-05-07 17:11:16 +02:00
Alayan
e505d9c686
Show a lower LoD level instead of having a detailled level pop up when very close
- It is visually more pleasant to have a low quality model than to have a sudden popping from the high quality one appearing when already close
- This also boosts performance
2024-05-06 23:24:43 +02:00
Alayan
553595fa63
Prevent geometry level from removing objects
The latest version was bugged as it removed all standard objects, but removing only objects marked by track-makers removed almost nothing of note, and bugs would sometimes remove normal objects. Fix #5052. Fix #5066. This makes #5063 moot.
2024-05-06 22:59:58 +02:00
Alayan
df803c18b8
Various adjustments to auto-LOD
- Increase the effect preventing LoD objects from popping at very short distances
- Add comments to all the steps and other clarifications
- Update the multiplier values to be approximately equally spaced geometrically
2024-05-06 22:51:25 +02:00
Nomagno
e47958f2d3
Fix #5053 (bool vector -> uint8_t vector) (#5073) 2024-05-05 23:21:31 +02:00
Alayan
dae5c49fcc
Add the label widget to common options includes
Should fix compilation on mobile
2024-05-05 18:13:28 +02:00
Alayan
785915770a
Remove code duplication in the help screens
Same approach as with the options screen: managing all the generic includes needed by all help screens in one place and adding a new standalone 'switchTab function
2024-05-05 18:00:45 +02:00
Alayan
fa421b43c7
Move the splitscreen split orientation in the display settings
It makes a lot of sense there too, and it makes the UI settings less crowded. This allows also to put the label as a section title, fixing an overflow that happened with some translations when using the very large font size.
2024-05-05 17:29:14 +02:00
Alayan
ad02608744
Remove code duplication in the options screens
Use a new standalone 'switchTab' function to centralize the activation of the screen matching the selected tab
2024-05-05 17:06:36 +02:00
Alayan
2fc05e94fc
Miscellaneous improvements to the options screens
* Use a new file for includes to reduce redundancy between option files
* Remove some unnecessary includes
* Reorder some includes
* Increase spacing in the graphics settings screen
* Increase spacing in the audio settings screen
2024-05-05 16:16:22 +02:00
Alayan
7ad4040b2d
Add a new 'Display' option tab
The video settings were getting crowded with the benchmark mode, and with large font size the benchmark buttons ended off-screen.
2024-05-05 14:24:56 +02:00
CodingJellyfish
aba99c22b6 Enable new screen resizing code 2024-05-05 13:45:23 +08:00
CodingJellyfish
6e2d528b91 Remove static variable in cutscenes 2024-05-05 13:18:59 +08:00
CodingJellyfish
7d02e57a19 Avoid resetting FOV which caused issue after resizing cutscene 2024-05-05 13:08:35 +08:00
Alayan
0969a173c7
Fix #5069 2024-05-04 20:26:24 +02:00
Alayan
8fd0a0a09d
Split the displaySoccerResults function
Use a 'drawTeamScorers' function to reduce code duplication and make it easier to understand what's going on. Some minor clean-up has also been done, but more could be done, especially regarding variables that had to be recreated in the new separate function.
2024-05-04 20:19:54 +02:00
Alayan
7a75f9e541
Clean up the Race Result GUI code
- Remove excessive indentations in race_result_gui.cpp
- Move the bulk of the displayPostRaceInfo function into new functions: displayHighscores, displayLapDifficulty and displayChallengeInfo
- Add comments for the closing braces of functions, for the closing braces of some large code blocks, and explaining some functions
2024-05-04 19:14:48 +02:00
CodingJellyfish
3a0a2eaf97 Add resizing code for kart selection 2024-05-04 16:54:09 +08:00
CodingJellyfish
0266b03809 Add minimum resizing code for race result screen 2024-05-04 15:38:18 +08:00
Deve
a14b9fd747 Update linux build script 2024-05-04 00:52:07 +02:00
CodingJellyfish
26aa328994 Add resizing code for credits 2024-05-03 20:20:03 +08:00
CodingJellyfish
e52b2fafdc Add resizing code for soccer setup screen 2024-05-03 18:02:46 +08:00
CodingJellyfish
31239615ef Add resizing code for add device dialog 2024-05-03 17:54:13 +08:00
CodingJellyfish
f73e56c204 Add resizing code for dialog and screen keyboard 2024-05-02 15:34:08 +08:00
CodingJellyfish
f8a43b86ea Fix server only build 2024-05-01 16:04:39 +08:00
CodingJellyfish
ff186339e1 Use proper method to shrink text in bubble widget to fix #3432 2024-05-01 13:00:54 +08:00
CodingJellyfish
c9d44736ed Add resizing code for bubble widget 2024-04-30 10:45:01 +08:00