You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-04 17:04:49 +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:
@@ -2,10 +2,12 @@
|
||||
#define RASTERIZER_RD_H
|
||||
|
||||
#include "core/os/os.h"
|
||||
#include "core/thread_work_pool.h"
|
||||
#include "servers/visual/rasterizer.h"
|
||||
#include "servers/visual/rasterizer_rd/rasterizer_canvas_rd.h"
|
||||
#include "servers/visual/rasterizer_rd/rasterizer_scene_forward_rd.h"
|
||||
#include "servers/visual/rasterizer_rd/rasterizer_storage_rd.h"
|
||||
|
||||
class RasterizerRD : public Rasterizer {
|
||||
protected:
|
||||
RasterizerCanvasRD *canvas;
|
||||
@@ -51,6 +53,8 @@ public:
|
||||
|
||||
virtual bool is_low_end() const { return true; }
|
||||
|
||||
static ThreadWorkPool thread_work_pool;
|
||||
|
||||
RasterizerRD();
|
||||
~RasterizerRD() {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user