| Age | Commit message (Collapse) | Author |
|
VideoCommon: Tweak widescreen heuristic.
|
|
It used to be the case that frame advance skipped duplicate frames
(i.e. it would take 30 frame advances to get through one second
of emulated time in a 30 fps game), but this broke in 9c5c3c0.
Skipping duplicate frames making TASing less annoying.
|
|
|
|
|
|
Hardware tests have shown that if the number of texgens/channels do not
match, you get garbage rendering. Presumably because the output
registers from the XF stage are fed into the incorrect input registers
for TEV/BP.
Currently, this causes Dolphin to crash/generate invalid shaders with an
assertion failure in the hardware backends. Instead, we log an error.
Perhaps in the future we should just spit out all texgens/colors anyway
from both stages, and let cross-stage optimization take care of DCE'ing
it away. But doing so would require changing the UIDs and invalidating
everyone's shader caches.
|
|
Cast the variable to the coresponding type.
|
|
Remove unused lambda captures.
|
|
|
|
Again, needed for MoltenVK.
|
|
|
|
logic.
|
|
It seems that the newer version of fmt gets tripped up by bitfields
within structs. However, we can just specify the intended type where
necessary to get around this.
|
|
|
|
VideoCommon/OSD: Process OSD messages even when they are disabled.
|
|
InputCommon: Make "Cursor" inputs aware of the rendered aspect ratio.
|
|
Add Dolphin version and current video backend to shader compilation logs
|
|
|
|
|
|
|
|
Now that we've converted the shader generation over to ShaderCode, we
can now make use of the fmt-capable WriteFmt function.
|
|
Migrates the shader generator off the use of a global array, eliminating
the use of some global state. This also allows us to move the shader
generation over to using fmt in a subsequent change.
|
|
Currently, we do not display every second frame in 25fps/30fps games
which run to vsync. This improves performance as there's less rendering
for the GPU to perform, but when combined with vsync, could cause frame
pacing issues.
This commit adds an option to force every frame generated by the console
to be displayed to the host, which may improve pacing for these games.
|
|
where possible.
This removes std::iostream from the inheritance chain, which reduces
overhead slightly.
|
|
|
|
|
|
The frame number is incremented before the first frame is swapped out.
Fixes ffmpeg creating invalid video files on output if the emulator only
runs for a single frame, e.g. FifoCI.
|
|
VideoCommon/TextureConverterShaderGen: Convert over to fmt
|
|
VideoCommon/FramebufferShaderGen: Minor clean up
|
|
VideoCommon/OpcodeDecoding: Make use of if constexpr
|
|
VideoCommon/BoundingBox: Make interface for querying bounding box data
|
|
calls into Enable()/Disable()
Now that we have an actual interface to manage things, we can stop
duplicating the calls to to the pixel shader manager and remove the
need to remember to actually do so when disabling or enabling the
bounding box.
|
|
Rather than expose the bounding box members directly, we can instead
provide an interface for code to use. This makes it nicer to transition
from global data, as the interface function names are already in
place.
|
|
Now that we've extracted all of the stateless functions that can be
hidden, it's time to make the index generator a regular class with
active data members.
This can just be a member that sits within the vertex manager base
class. By deglobalizing the state of the index generator we also get rid
of the wonky dual-initializing that was going on within the OpenGL
backend.
Since the renderer is always initialized before the vertex manager, we
now only call Init() once throughout the execution lifecycle.
|
|
We can use if constexpr with the template functions that pass in a
non-type template parameter, allowing the removal of branches that
aren't taken at compile time.
Compilers will generally do this by default, however, we now give a
gentle prodding to the compiler if this would otherwise not be the case.
|
|
These don't rely on any of the static members within the IndexGenerator
class, so we can make all of these functions fully internal to the
translation unit.
|
|
More things will be moved into this in subsequent changes. While we're
at it, we can also make use of std::array.
|
|
We can make use of if constexpr in several scenarios here to allow
compilers to exise the relevant code paths out.
Technically a decent compiler would do this already, but now we can give
compilers a little more nudging here in the event that isn't the case.
|
|
Nothing provided by these headers are used, so we can remove them.
|
|
cmd2 is a u32, so any bitwise arithmetic on it with a type of the same
size or smaller will result in a u32 value. This is also implicitly
converted to an unsigned type in the if statement as well, given that
size_t * int -> size_t.
This is just more explicit about the operations occurring and also
likely silences a sign conversion warning.
|
|
With the use of a lambda and a change in switch fallthrough, we can
completely eliminate the use of goto within Run().
|
|
Provides a region for all internal utilities.
|
|
Amends a documentation comment that acquired some wonky formatting
during the introduction of clang-format a few years ago.
|
|
Keeps the global localized with the code that it's primarily related to.
Now it's obvious from a glance what the global variable is affecting.
|
|
Provides consistent naming of variables within the translation unit.
While we're at it, we can mark them const where applicable.
|
|
We only use these string streams to output into a final std::string
instance, we don't read into types with them. Because of this, we can
just make use of std::ostringstream, rather than the fully-fledged
std::stringstream.
|
|
Prevents the use of the null pointer as an input to any functions.
|
|
This isn't used anywhere within the codebase, so it can be removed
entirely.
|
|
Places all internal helpers and types within an anonymous namespace.
|
|
Makes the source files consistent with the rest of the VideoCommon code.
|
|
No behavioral change. This is intended to make the transition to fmt
less noisy in subsequent changes by combining insertions of multiple
string literals into one where applicable.
|