You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Added a spinlock template as well as a thread work pool class.
Also, optimized shader compilation to happen on threads.
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
#include "core/rid_owner.h"
|
||||
#include "core/variant.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#include <mutex>
|
||||
/**
|
||||
@author Juan Linietsky <reduzio@gmail.com>
|
||||
*/
|
||||
@@ -67,6 +67,10 @@ class ShaderRD {
|
||||
bool initialize_needed;
|
||||
};
|
||||
|
||||
std::mutex variant_set_mutex;
|
||||
|
||||
void _compile_variant(uint32_t p_variant, Version *p_version);
|
||||
|
||||
void _clear_version(Version *p_version);
|
||||
void _compile_version(Version *p_version);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user