summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-16 23:02:29 +0200
committerbunnei <bunneidev@gmail.com>2018-10-16 23:02:29 +0200
commitee7c2dbf5a9086a006e713fcc9eff43f18cafcc9 (patch)
tree1b6c1ee253d8111c2d74641201cec514613a3435 /src/video_core
parentrasterizer_cache: Refactor to support in-order flushing. (diff)
downloadyuzu-ee7c2dbf5a9086a006e713fcc9eff43f18cafcc9.tar
yuzu-ee7c2dbf5a9086a006e713fcc9eff43f18cafcc9.tar.gz
yuzu-ee7c2dbf5a9086a006e713fcc9eff43f18cafcc9.tar.bz2
yuzu-ee7c2dbf5a9086a006e713fcc9eff43f18cafcc9.tar.lz
yuzu-ee7c2dbf5a9086a006e713fcc9eff43f18cafcc9.tar.xz
yuzu-ee7c2dbf5a9086a006e713fcc9eff43f18cafcc9.tar.zst
yuzu-ee7c2dbf5a9086a006e713fcc9eff43f18cafcc9.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/rasterizer_cache.h4
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp4
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/video_core/rasterizer_cache.h b/src/video_core/rasterizer_cache.h
index 3ec01b967..0a3b3951e 100644
--- a/src/video_core/rasterizer_cache.h
+++ b/src/video_core/rasterizer_cache.h
@@ -119,8 +119,8 @@ protected:
auto& rasterizer = Core::System::GetInstance().Renderer().Rasterizer();
rasterizer.UpdatePagesCachedCount(object->GetAddr(), object->GetSizeInBytes(), -1);
- // Only flush if use_accurate_framebuffers is enabled, as it incurs a performance hit
- if (Settings::values.use_accurate_framebuffers) {
+ // Only flush if use_accurate_gpu_emulation is enabled, as it incurs a performance hit
+ if (Settings::values.use_accurate_gpu_emulation) {
FlushObject(object);
}
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 6ce183c25..468253033 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -638,8 +638,8 @@ void RasterizerOpenGL::FlushAll() {}
void RasterizerOpenGL::FlushRegion(VAddr addr, u64 size) {
MICROPROFILE_SCOPE(OpenGL_CacheManagement);
- if (Settings::values.use_accurate_framebuffers) {
- // Only flush if use_accurate_framebuffers is enabled, as it incurs a performance hit
+ if (Settings::values.use_accurate_gpu_emulation) {
+ // Only flush if use_accurate_gpu_emulation is enabled, as it incurs a performance hit
res_cache.FlushRegion(addr, size);
}
}
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
index f79b4f221..1fddc1c26 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
@@ -1197,11 +1197,11 @@ Surface RasterizerCacheOpenGL::RecreateSurface(const Surface& old_surface,
// If the format is the same, just do a framebuffer blit. This is significantly faster than
// using PBOs. The is also likely less accurate, as textures will be converted rather than
- // reinterpreted. When use_accurate_framebuffers setting is enabled, perform a more accurate
+ // reinterpreted. When use_accurate_gpu_emulation setting is enabled, perform a more accurate
// surface copy, where pixels are reinterpreted as a new format (without conversion). This
// code path uses OpenGL PBOs and is quite slow.
const bool is_blit{old_params.pixel_format == new_params.pixel_format ||
- !Settings::values.use_accurate_framebuffers};
+ !Settings::values.use_accurate_gpu_emulation};
switch (new_params.target) {
case SurfaceParams::SurfaceTarget::Texture2D: