Adds async_shader_compilation cvar (default true) that forces new pipelines to be created async from the main thread, skips draws entirely on D3D12 and on vulkan replaces pixel shader with placeholder until the real one is ready. Causes some visual artifacts on first load but greatly reduces load times and stutter.
46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
/**
|
|
******************************************************************************
|
|
* Xenia : Xbox 360 Emulator Research Project *
|
|
******************************************************************************
|
|
* Copyright 2020 Ben Vanik. All rights reserved. *
|
|
* Released under the BSD license - see LICENSE in the root for more details. *
|
|
******************************************************************************
|
|
*/
|
|
|
|
#ifndef XENIA_GPU_GPU_FLAGS_H_
|
|
#define XENIA_GPU_GPU_FLAGS_H_
|
|
#include "xenia/base/cvar.h"
|
|
|
|
DECLARE_path(trace_gpu_prefix);
|
|
DECLARE_bool(trace_gpu_stream);
|
|
|
|
DECLARE_path(dump_shaders);
|
|
|
|
DECLARE_bool(vsync);
|
|
|
|
DECLARE_uint64(framerate_limit);
|
|
|
|
DECLARE_bool(gpu_allow_invalid_fetch_constants);
|
|
|
|
DECLARE_bool(non_seamless_cube_map);
|
|
|
|
DECLARE_bool(half_pixel_offset);
|
|
|
|
DECLARE_int32(query_occlusion_sample_lower_threshold);
|
|
|
|
DECLARE_int32(query_occlusion_sample_upper_threshold);
|
|
|
|
DECLARE_int32(anisotropic_override);
|
|
|
|
DECLARE_bool(disassemble_pm4);
|
|
|
|
DECLARE_bool(no_discard_stencil_in_transfer_pipelines);
|
|
|
|
DECLARE_bool(async_shader_compilation);
|
|
|
|
DECLARE_bool(gpu_3d_to_2d_texture);
|
|
|
|
#define XE_GPU_FINE_GRAINED_DRAW_SCOPES 1
|
|
|
|
#endif // XENIA_GPU_GPU_FLAGS_H_
|