Enable multithreading for texture compilation, use new user ThreadPool for compilation.

PiperOrigin-RevId: 864449279
Change-Id: I5dd053ab0b1f14d81e1f68296eadc59cd5b8d698
This commit is contained in:
Sam Haves
2026-02-02 11:34:48 -08:00
committed by Copybara-Service
parent f0d5ed73b2
commit 49b4790877
3 changed files with 131 additions and 84 deletions
+1 -2
View File
@@ -1441,14 +1441,13 @@ class mjCTexture : public mjCTexture_, private mjsTexture {
void CopyFromSpec(void);
void PointToLocal(void);
void NameSpace(const mjCModel* m);
void Compile(const mjVFS* vfs);
std::string File() const { return file_; }
std::string get_content_type() const { return content_type_; }
std::vector<std::string> get_cubefiles() const { return cubefiles_; }
private:
void Compile(const mjVFS* vfs); // compiler
// store texture into asset cache
std::string GetCacheId(const mjResource* resource, const std::string& asset_type);
void Builtin2D(void); // make builtin 2D