mirror of
https://github.com/citron-neo/emulator.git
synced 2026-07-05 15:21:57 -07:00
fix: Async black shader issue
This commit is contained in:
@@ -700,8 +700,10 @@ GraphicsPipeline* PipelineCache::BuiltPipeline(GraphicsPipeline* pipeline) const
|
||||
if (!use_asynchronous_shaders) {
|
||||
return pipeline;
|
||||
}
|
||||
// When asynchronous shaders are enabled, avoid blocking the main thread completely.
|
||||
// Skip the draw until the pipeline is ready to prevent stutter.
|
||||
const auto& state = maxwell3d->draw_manager->GetDrawState();
|
||||
if (state.index_buffer.count <= 6 || state.vertex_buffer.count <= 6) {
|
||||
return pipeline;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user