Age | Commit message (Collapse) | Author |
|
Ensures that a fixed-point value is always initialized
This likely also fixes several cases of uninitialized values being
operated on, since we have multiple areas in the codebase where the
default constructor is being used like:
Common::FixedPoint<50, 14> current_sample{};
and is then followed up with an arithmetic operation like += or
something else, which operates directly on FixedPoint's internal data
member, which would previously be uninitialized.
|
|
Given these are just moving a raw value around, these can sensibly be
made constexpr to make the interface more useful.
|
|
These shouldn't throw and can influence how some standard algorithms
will work.
|
|
Marks member functions as discard, where ignoring the return value would
be indicative of a bug or dead code.
|
|
This calls round_up(), which is a non-const member function, so if a
fixed-point instantiation ever calls to_uint(), it'll result in a
compiler error.
This allows the member function to work.
While we're at it, we can actually mark to_long_floor() as const, since
it's not modifying any member state.
|
|
Collapses all of the comparison functions down to a single line.
|
|
Makes a few things a little less noisy and removes the need for SFINAE
in quite a few functions.
|
|
CMake: Try add_library "lz4" if "lz4::lz4" is unavailable
|
|
As we require the latest C++ standards to compile yuzu, checking for C++14 constexpr is not needed.
|
|
|
|
Right now this looks like a distro specific problem, but we'll have to see.
Over on Gentoo: with lz4 1.9.3 there is a lz4::lz4 library target, with 1.9.4 it's no longer
mentioned in the cmake files provided by the package. (/usr/lib64/cmake/lz4)
arch and openSUSE have lz4 1.9.4 available so I checked there,
they only have .pc files for pkg-config, so asking for "lz4::lz4" works as usual
MSVC does require "lz4::lz4" to be asked for
|
|
Since 16:10 was added, the maximum value is now 4.
|
|
|
|
|
|
|
|
Avoids conflicting with the va_start macro
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cmake: fix git detection
|
|
The startup check apparently confuses other programs when yuzu launches
2 processes and then quickly closes one of them. Though this isn't
really our issues it's also not a big deal for me to add an option to
work around that issue.
|
|
|
|
[Coretiming/NVNFlinger] Improve multi-core vsync timing, and core timing accuracy
|
|
common: Use PROJECT_SOURCE_DIR to find CMakeModules
|
|
yuzu qt: Add option to create Windows crash dumps
|
|
|
|
input_common: Add support for analog toggle
|
|
video_core: add option for pessimistic flushing
|
|
|
|
yuzu: Move mini_dump out of core
startup_checks: Better exception handling
|
|
network: Fixes and improvements to the room feature
|
|
replace it with alignas() and a C array
|
|
Makes it easier for users to recognize connection errors caused by different game versions.
|
|
|
|
code: dodge PAGE_SIZE #define
|
|
Some header files, specifically for OSX and Musl libc define PAGE_SIZE to be a number
This is great except in yuzu we're using PAGE_SIZE as a variable
Specific example
`static constexpr u64 PAGE_SIZE = u64(1) << PAGE_BITS;`
PAGE_SIZE PAGE_BITS PAGE_MASK are all similar variables.
Simply deleted the underscores, and then added YUZU_ prefix
Might be worth noting that there are multiple uses in different classes/namespaces
This list may not be exhaustive
Core::Memory 12 bits (4096)
QueryCacheBase 12 bits
ShaderCache 14 bits (16384)
TextureCache 20 bits (1048576, or 1MB)
Fixes #8779
|
|
|
|
|