Rafał Florczak
2fb879d150
Revert "Create FailWithMessage/AssertWithMessage"
...
This reverts commit fbe0e0b658 .
2025-01-12 09:38:28 -08:00
teejusb and Scott Brenner
e372dd6360
Update Build/README.md
...
Co-authored-by: Scott Brenner <[email protected] >
2025-01-05 16:30:48 -08:00
sukibaby and Scott Brenner
21238b90ff
Apply suggestions from code review
...
👍
Co-authored-by: Scott Brenner <[email protected] >
2025-01-05 16:30:48 -08:00
sukibaby
54a53b4b2d
Delete Build/INSTALL.md
...
Move INSTALL.md contents into README.md
2025-01-05 16:30:48 -08:00
sukibaby
d837599530
Prevent leaking compilation path to log file
...
The current code leaks the build path of the machine the game is compiled on
2025-01-05 12:35:32 -08:00
sukibaby
f57c71bd23
Ensure a consistent definition of TimingSegment::EPSILON
...
Since the EPSILON variable in the header file was declared but not assigned any value, it could lead to undefined behavior or calculation errors when the variable is used without initialization. This ensures a consistent value is always used and is also defined at compile time for further safety.
2024-12-24 22:42:58 -08:00
Scott Brenner
dd6956f1cf
Raise pull requests for version updates against the 'beta' branch
2024-12-22 07:53:12 -08:00
Scott Brenner
93cf73fe34
Create dependabot.yml
2024-12-21 11:53:35 -08:00
sukibaby
4af78281cf
Properly destroy closed WebSocketHandles
2024-12-17 09:02:53 -08:00
sukibaby
29d6531a50
Rearrange ShutdownGame() to prevent network based crash
...
This prevents a crash that occurs when trying to exit the game while a connection attempt is being made (such as closing the game while it's in the middle of trying to connect to GrooveStats).
2024-12-17 09:02:53 -08:00
Brandon W
ff8e018fbf
Fix a case where we receive no hints on the number of frames in a file.
2024-12-08 08:07:20 -08:00
sukibaby
83af23787c
Revision to ActorMultiVertex changes
...
Following the discovery of the underlying bugs in BitmapText causing issues with performance of Step Statistics, I wanted to revisit some changes I made to ActorMultiVertex in ae6d7cecb5 . Some things were reverted to prefer original behavior.
2024-12-06 21:08:21 -08:00
Yauhen Artsiukhou
ada419f1ff
Fix lights driver regression after restart button added
...
Relates pull: #347
2024-12-04 12:59:20 -08:00
sukibaby
7b45a5f599
RageTimer bug fix
...
Fast data types are good for audio processing, but not so much for timekeeping. This PR should resolve a number of smaller issues.
2024-12-04 09:41:26 -08:00
Scott Brenner
ffc576a210
Fix CI badge in README.md
2024-12-01 14:31:33 -08:00
sukibaby
3eae2f2052
Preference to handle the debug overlay, create fake classes to disable unwanted debug lines (for now)
...
Ideally this would also have an option to allow AutoSync, AutoPlay, and Assist Tick with the debug overlay disabled, but that would require migrating that functionality elsewhere.
2024-11-30 22:56:28 -08:00
sukibaby
2147aa435a
NotesLoader::GetMainAndSubTitlesFromFullTitle
...
Minor cleanup on `GetMainAndSubTitlesFromFullTitle` to use a range-based for loop, and also is slightly improved so that separators of any length will work, whereas the original code only works when the separator is one character long.
2024-11-28 11:22:08 -08:00
glitchbear
b46f929178
Fixed display settings and refresh rate selection for exclusive fullscreen mode. Now applies the selected settings to the preferred display instead of the primary display.
2024-11-28 11:14:08 -08:00
glitchbear
29ae636255
Testing refresh rate being selected based on fetching the preferred display rather than primary.
2024-11-28 11:14:08 -08:00
glitchbear
a3a22040a2
Clean up strings and fix behavior when switching to windowed mode
2024-11-28 11:14:08 -08:00
glitchbear
2dcd4eb2ee
Add option to select output display in Windows
2024-11-28 11:14:08 -08:00
sukibaby
758ae970e2
Go back to using float time values in ScreenEdit
...
This fixes a regression where record mode can't tell if you're trying to input a hold or not.
2024-11-28 11:03:52 -08:00
Brandon W
ee16093adc
Create a "GameplayHelpers" file and move the margin gathering code
...
in there.
2024-11-28 11:01:24 -08:00
Brandon W
98b7f28c26
Fixes for Google style guide.
2024-11-06 01:20:31 -08:00
Brandon W
1626398244
Fix for movies shorter than the buffer size.
2024-10-22 16:45:24 -07:00
sukibaby
a6a60e2e56
Remove std prefix from int types
...
std::int* -> int*
2024-10-08 20:52:52 -07:00
sukibaby
fbe0e0b658
Create FailWithMessage/AssertWithMessage
...
Migrate some very frequently called macros from global.h to global.cpp. This reduces Windows release executable size by 43 KB.
After moving ASSERT_M and FAIL_M into void functions, these two virtuals in RageFileBasic.h won't compile as they don't return a value. This changes them to return a default value.
2024-10-08 20:52:25 -07:00
Yauhen Artsiukhou
59e6e94cf3
Embed libusb 1.0 into project
2024-10-06 17:43:13 -07:00
sukibaby
1c46342a95
Fix SongPosition variable initialization
...
Move SongPosition::Reset into the header file, and call it in the constructor.
2024-10-05 20:25:09 -07:00
sukibaby
659cd549a2
Remove std prefix from uint types
...
std::uint* -> uint*
2024-10-05 19:25:41 -07:00
sukibaby
57afab25c1
Remove m_iRageSoundSampleCountClamp preference
...
Windows XP era DirectSound hack - removing the functions that used this.
2024-10-01 13:03:06 -07:00
sukibaby
584fca49b7
Remove low_sample_count_workaround
...
No longer needed now that hardware clamping methods are corrected.
2024-10-01 13:03:06 -07:00
sukibaby
856f6b3058
Revert to the old RadianToDegree method
...
Doesn't seem to be getting called, but prefer to maintain the original behavior to reduce uncertainty.
2024-10-01 01:50:16 -07:00
sukibaby
c297f73f69
Revert "Run as "High Priority" on Windows"
...
Revert "Run as "High Priority" on Windows"
This reverts commit 3f8a7f5fd3 .
2024-10-01 01:49:22 -07:00
sukibaby
e0b254968d
std::size_t -> size_t
...
Removing std prefix from all size_t.
2024-10-01 01:46:26 -07:00
sukibaby
8d125f3951
pos_map_backlog_frames optimization
...
The value was determined by profiling the `Cleanup` function as well as monitoring how frequent "Audio frame out of range" errors occurred. This provides an ideal balance of low latency and prevention of out-of-range errors.
2024-09-30 22:24:32 -07:00
Brandon W
7b2f0338b8
Add centering back into edit/practice mode playback.
2024-09-30 17:20:11 -07:00
sukibaby
bcd7e8e1d2
put the enum class back
2024-09-30 17:17:02 -07:00
sukibaby
af33f7d5c9
Indicate fallthrough to prevent a GCC warning
...
Without this here, GCC 11 and 12 will print a warning during compilation about a possible fallthrough, but we're doing that on purpose, so this simply adds an indicator to the compiler that we know what we're doing.
2024-09-30 17:17:02 -07:00
sukibaby
d13740ce33
Rename the StretchType enum in Actor
...
The lowercase enum is confusing because it looks like a variable. This prefixes it with a class name so it's easier to understand its purpose.
2024-09-30 17:17:02 -07:00
sukibaby
8804607be4
ActorFrame: replace a switch with an if/else
...
More of a stylistic change than an optimization, but makes it easier to understand what's happening.
2024-09-30 17:17:02 -07:00
sukibaby
93c15f9b15
Change ARROW_SIZE to a constexpr int
2024-09-30 17:17:02 -07:00
sukibaby
abf89ec2b1
Replace SAFE_DELETE / SAFE_DELETE_ARRAY macros
...
SAFE_DELETE -> RageUtil::SafeDelete
SAFE_DELETE_ARRAY -> RageUtil::SafeDeleteArray
Update JsonUtil.h to include RageUtil.h - MSVC doesn't need it included for some reason, but GCC and XCode does.
2024-09-30 15:13:32 -07:00
Brandon W
cff063cd21
Fix routine chart loading/playback in EditMode.
2024-09-30 13:59:47 -07:00
sukibaby
25f1bebf0e
Fix a regression in BitmapText
...
Shouldn't have made this namespace as it complicates matters and breaks debug builds.
2024-09-27 20:25:39 -07:00
sukibaby
f5cb958f78
Delete src/archutils/Win32/ThreadPriorityHelper
...
unused
2024-09-27 12:47:44 -07:00
sukibaby
01795ef948
fixes
2024-09-22 11:00:41 -07:00
sukibaby
b000887f76
Remove some macros related to Rainbow Mode
...
Should help allowing the compiler to properly optimize this operation, as these macros are only used here.
2024-09-22 11:00:41 -07:00
sukibaby
080f95bf97
Expand BitmapText::UpdateBaseZoom()
...
The macro here is unnecessary.
2024-09-22 11:00:41 -07:00
sukibaby
3b69a3179e
Undefine CPY macro
2024-09-22 11:00:41 -07:00