Commit Graph

23323 Commits

Author SHA1 Message Date
CodingJellyfish
52edb8507e Remove the remaining unneeded header file includes 2024-04-19 17:28:11 +08:00
CodingJellyfish
f70c2abe54 Remove unneeded header file includes in online screens 2024-04-19 15:55:56 +08:00
CodingJellyfish
913a082528 Keep multiplayer in kart selection screen after reloading 2024-04-19 13:35:37 +08:00
CodingJellyfish
2f87966ff6 Add basic code for widget and screen resize 2024-04-19 13:18:31 +08:00
Deve
78c6f16d79 Fixed a crash when entering story mode 2024-04-18 19:27:18 +02:00
Deve
754a11030e Update gradle and android build script 2024-04-18 17:20:09 +02:00
CodingJellyfish
6be521fc96
Fix #5054 (#5055) 2024-04-17 14:09:18 +02:00
Alayan
a6cecd2279
First steps for a benchmark mode
* Add a button in the graphics options to start a benchmark
* Added logic to play a custom replay for benchmarking
* Added logic to automatically start and end the profiling as the race starts and ends, when in benchmark mode
* Disable the profiler drawings in benchmark mode, they take additional resources and are useless
* Keep the race going when the pause menu is opened, as it would otherwise distort the results
* Added logic to clean up the profiler data each time profiling is switched back from off to on. This avoids multiple profiling sessions piling up in one report, for example when benchmarking tw
* Added a sped up Black Forest replay for use during the benchmark

Missing features and known issues:
* The end screen should display a benchmark result summary instead of a normal end screen
* Entering and leaving the pause menu in benchmark mode makes some parts of the race UI disappear
* The end screen should send the player back to the graphics settings, not the main menu
* Pausing and quitting can leave the profiler enabled when it should not be
* The options in the pause menu should be customized in benchmark mode
* The replay used for benchmarking should be configurable in a data file
* Automatically testing multiple graphics settings and providing an overall summary
* And more advanced options.
2024-04-16 05:46:30 +02:00
CodingJellyfish
8577408cec
LOD improvements (#5038)
* Quick cull invisible LOD nodes
* Reduce dynamic cast
* Fix for Vulkan

Maintainer's comment: Helps only in select tracks and more in already fast frames than in the more problematic slow frames, but an improvement nonetheless.
2024-04-15 16:30:08 +02:00
Alayan
6cf094ab78
Add new setting values for increased view distances
Add 3 new setting values, increasing the distance at which a lower level of detail is used by factors of 1.6, 2.0 and 3.0 (default is 1.25). This allows players for which getting enough FPS is not an issue to reduce pop-in and improve the looks of tracks.

In local testing with a strong CPU and a weak GPU, the performance impact of increasing the view distances is small and well worth it, but this may vary from system to system. More testing is needed on different systems, but this suggests room to increase minimum, default and maximum values in future releases.

This patch also slightly changes the auto-computation of LoD distance, making the transition around a distance of 250 smoother.
2024-04-15 01:48:58 +02:00
kimden
31bdb52bfd Make sure handleAllVotes returns true at least once 2024-04-02 01:00:32 +04:00
kimden
c520c441d3 Don't pick first vote if vote majority is achieved but no vote coincides completely 2024-04-02 00:43:58 +04:00
kimden
4ee7c51131 Fix random choice of several equal votes in handleAllVotes 2024-04-02 00:42:33 +04:00
oldherl
979077abab Update Cantarell font
Update to Cantarell 0.303.
Upstream releases only include VF files now.
This single weight file was extracted from debian package fonts-cantarell_0.303.1-1_all.deb
2024-03-20 16:53:31 +11:00
Benau
1a8dbbdc74 Fix #5024 2024-02-23 22:30:43 +08:00
jacekpoz
a254c7afc2
make loopback checking more readable (#5016)
* make loopback checking more readable

* follow coding style

---------

Co-authored-by: jacekpoz <jacekpoz@cock.li>
2024-02-07 23:18:25 +08:00
Benau
e1454a007e Fix memory corruption when vector being resized 2024-01-25 10:51:10 +08:00
CodingJellyfish
ec8362915d
Fix #4984 & #4995 (#4998) 2024-01-18 01:13:23 +08:00
Sonter
6573ebe09e
Fix #4960 (#5003)
Adjust linked buttons.

Enum MultitouchButtonType is here: https://github.com/supertuxkart/stk-code/blob/master/src/input/multitouch_device.hpp
2024-01-18 01:12:55 +08:00
Xiangquan Xiao
fab7915011 Minor fix on coding styles. 2024-01-07 14:08:59 -05:00
CodingJellyfish
2e89eeed1a
Fix #3471 v2 (#4989)
Add factor to fonts for scaling to higher size
2024-01-08 01:13:13 +08:00
CodingJellyfish
3928a49d5e
Fix #4923 (#4981) 2024-01-06 12:17:57 +08:00
CodingJellyfish
b35cd18eb0
Fix #4969 (#4985) 2024-01-06 11:39:16 +08:00
Benau
42d4eaae96 Fix switch build 2023-12-18 10:39:21 +08:00
Benau
caf6a1b504 Revert "Drop support for the DirectX9 renderer"
This reverts commit c11a7236c7.
2023-12-18 10:35:58 +08:00
Benau
5a4020bcb8 Revert "Remove DX9 leftovers"
This reverts commit 4525411e84.
2023-12-18 10:32:29 +08:00
Alayan
4525411e84
Remove DX9 leftovers 2023-12-16 16:05:41 +01:00
Alayan
c11a7236c7
Drop support for the DirectX9 renderer 2023-12-16 15:24:35 +01:00
CodingJellyfish
65ee612110
Fix #3754 (#4966)
* Fix portrait

* Fix vertical tabs

* Fix server selection

* Update race_setup.stkgui
2023-12-14 19:08:41 +01:00
Alayan
bba568d9b8
Use theme color for textbox cursor and fix #4947
- Change the colors of the background and borders of the textbox to ensure they always contrast with each other
- Make the color of the textbox cursor the same as the skin's text color - this ensure it always has good contrast
- Offset the display of text slightly in the textbox. This avoids the cursor 'blending in' with the textbox border
2023-12-14 18:24:37 +01:00
Alayan
f8db600d09
Fix #4965 2023-12-14 16:58:36 +01:00
Alayan
6d38bfec8c
Fix 'Replay with UID of lu' error
- Correctly format the log to display the actual UID
- Fix getReplaydIdByUid being called with an UID of 0, when no replay to compare has been selected
2023-12-06 20:00:52 +01:00
Alayan
4ca872f23d
Make the unsupported replay version warning more compact 2023-11-29 22:35:52 +01:00
Alayan
5bb5f5e86e
Fix #4951 2023-11-29 22:29:34 +01:00
Alayan
a57ac415bb
Fix #3578
- If there is 2 or 3 karts in the GP, karts in 2nd and (if any) 3rd place display a sad animation
- If there is 4 karts in the GP, the kart in 3rd displays a sad animation
- If there is 5 karts or more in the GP, all karts on the podium display a happy animation

The first kart in the GP always displays a happy animation even if alone.
2023-11-24 17:59:39 +01:00
Alayan
bf88954e31
Fix #4944 2023-11-24 16:29:18 +01:00
Alayan
2a903271aa
Fix #4844 2023-11-24 16:13:12 +01:00
Alayan
e744fd3033
More audio improvements
- Fix a bug that made the last lap SFX played only if music was on.
- Fix the behavior of the music volume adjustment when the last lap SFX is played. Previously, the music volume was only adjusted when the music volume was above a certain threshold, but when it was above that threshold, the adjustment was too strong.
2023-11-17 19:11:25 +01:00
Alayan
40511b218c
Fix #4938
- Set the minimum sound volume to 0.025f instead of effectively 0.1f. This is particularly helpful for headphone users.
- Make the step between each volume setting exponential.
- Add parameters to remember the parameters of the audio spinners.
- Increase the default number of values the audio spinners can take from 10 to 15. Old config files will keep using 10.
- Set the default values to 10 (spinners), which translates to 0.2678 (volume fraction) instead of 0.6 (previous default)
2023-11-17 18:49:25 +01:00
Alayan
858ed6bb3e
Fix #4926
Also add more explicit error logging for this case.
2023-11-12 23:02:27 +01:00
Benau
8cd6a231cc Enable AppleMomentumScrollSupported on macOS 2023-11-12 12:56:28 +08:00
CodingJellyfish
bd245e17bf
Fix #4895 (#4896) 2023-11-12 11:32:04 +08:00
Benau
1ba1e7e59f Use high precision for time2Ticks 2023-11-12 11:29:41 +08:00
Benau
7ecdc3efd7 Update macOS building instructions 2023-11-12 10:06:49 +08:00
Alayan
0eb64d0ad5
Fix #4922 by enforcing the bounds
Testing with high reduce-turn-max, skidding looks fine with steer values that would have previously gone out of boundaries. No further fix is needed.
2023-11-11 01:40:04 +01:00
Alayan
f4fd914858
Mostly revert #4632 and properly fix #4609
Not displaying a win message when there is only one kart was intended behaviour. A win requires the possibility of a loss. However, displaying the finishing rank with only one kart is ugly.
2023-11-11 01:32:31 +01:00
Alayan-stk-2
6c2dd48c48
Changelog update
1.3 changelog completed
2023-11-10 23:49:07 +01:00
Alayan
491c3dee34
Fix updateAndTestFinished to use time2ticks
Also remove the useless function parameter
2023-11-10 19:45:03 +01:00
Deve
f5cc8b4bde Small fixes in android build script 2023-09-30 10:50:12 +02:00
Benau
e00a81a961 Fix broken ProgressBarMessage after 8f596e29b3 2023-08-15 10:48:21 +08:00