| Age | Commit message (Collapse) | Author |
|
|
|
This header doesn't actually make use of MathUtil.h within itself, so
this can be removed. Many other source files used VideoCommon.h as an
indirect include to include MathUtil.h, so these includes can also be
adjusted.
While we're at it, we can also migrate valid inclusions of VideoCommon.h
into cpp files where it can feasibly be done to minimize propagating it
via other headers.
|
|
Makes the global variable follow our convention of prefixing g_ on
global variables to make it obvious in surrounding code that it's not a
local variable.
|
|
Rather than making Statistics' member functions operate on the global
variable instance of itself, we can make these functions member
functions and operate on a by-instance state, removing the direct
dependency on the global variable itself.
This also makes for less reading, as there's no need to repeat "stats."
for all variable accesses.
|
|
Normalizes all variables related to statistics so that they follow our
coding style.
These are relatively low traffic areas, so this modification isn't too
noisy.
|
|
Code: Rename AVIDump to FrameDump
|
|
|
|
Fixed various errors spotted with Application Verifier
|
|
initialized in a thread safe manner since C++11
Also works around a Visual Studio 2017 bug where static inline class fields are destructed multiple times
|
|
This fixes some mistakes from #8049 that caused crop to behave like
stretch and have a funny offset.
|
|
This fixes the problem where OBS game capture only grabs the region
inside an ImGui window whenever one is open, when using the OpenGL
backend. Shouldn't have any negative effects, as the scissor would've
been something completely arbitrary anyways.
This may affect other capture software that uses the same hooking
method, but I've only tested OBS.
|
|
Renderer: Adjust source rectangle when crop would draw off screen
|
|
Greatly simplifies the overall interface when it comes to compiling
shaders. Also allows getting rid of a std::string overload of the same
name. Now std::string and const char* both go through the same function.
|
|
|
|
|
|
This prevents us from requiring an oversized and/or negative viewport by
shrinking the source rectangle instead.
|
|
|
|
This also better handles in-memory interlaced XFB data placed by the CPU
by considering the stride from the VI.
|
|
|
|
|
|
|
|
|
|
The new tile cache is dynamic in size and can be turned on/off.
|
|
|
|
|
|
|
|
|
|
|
|
This is a scaling factor, used for hi-dpi configurations.
|
|
|
|
|
|
|
|
Always clean cache on render swap
|
|
|
|
RenderBase: don't clamp draw size to window
|
|
|
|
|
|
Since we use the common pipelines here and draw vertices if a batch is
currently being built by the vertex loader, we end up trampling over its
pointer, as we share the buffer with the loader, and it has not been
unmapped yet. Force a pipeline flush to avoid this.
|
|
It doesn't feel great to let the value from a previous emulation session
linger around considering that the GC aspect ratio heuristic can use
the previous value of m_aspect_wide when calculating m_aspect_wide.
|
|
|
|
|
|
Not the best integration point, but couldn't think of something better.
This implementation has the benefit to be super simple.
|
|
|
|
|
|
when XFB was loaded from console RAM.
If, for whatever reason, the XFB has to be loaded from console memory, it's possible that the texture is returned at native resolution instead of EFB-scaled resolution. In this case, our xfb_rect.right adjustment must also happen at native resolution instead of scaled resolution.
|
|
It distorts the aspect ratio when cropping, rather than actually cropping.
|
|
|
|
This pr adds an OnScreenDisplay message when you use the Volume hotkeys.
Just to have visual feedback.
|
|
RenderBase: Ensure the draw size does not exceed the window size
|
|
|