Share GPU skinning palette per instance; push it once per change
Render3DDraw/HardwareBatch hold the SDK's shared palette instead of copying 16 floats per bone per draw, and HardwareScene re-pushes the uniform only when the palette pointer changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
1eccdc87d7
commit
837ccc2f31
@@ -31,7 +31,7 @@ struct HardwareBatch {
|
||||
float alphaRef;
|
||||
HardwareTransform transform{};
|
||||
std::shared_ptr<const Render3DDraw> geometry;
|
||||
std::vector<float> palette;
|
||||
std::shared_ptr<const std::vector<float>> palette;
|
||||
|
||||
};
|
||||
class HardwareScene {
|
||||
|
||||
Reference in New Issue
Block a user