reduce allocations in rendering
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2025-05-24 23:47:50 -04:00
parent 23b70c1923
commit 1999319433
5 changed files with 8 additions and 7 deletions

View File

@ -1,3 +1,3 @@
#maven.buildNumber.plugin properties file
#Thu May 22 21:10:50 EDT 2025
buildNumber=632
#Sat May 24 23:29:15 EDT 2025
buildNumber=633

View File

@ -1973,6 +1973,7 @@ Performance improvements
- Nearby entity lookup caching per frame
- Far-away entities do not spawn physics by default
- Clustering terrain draw calls
- Reduce allocations in some rendering paths
Lod emitter service checker function
Mesh profiling
Upgrade target framerate

View File

@ -110,7 +110,7 @@ public class MainContentPipeline implements RenderPipeline {
modelTransformMatrix.translate(cameraModifiedPosition);
modelTransformMatrix.rotate(EntityUtils.getRotation(currentEntity));
modelTransformMatrix.scale(scaleVec.set(EntityUtils.getScale(currentEntity)));
currentActor.applySpatialData(new Matrix4d(modelTransformMatrix),new Vector3d(position));
currentActor.applySpatialData(modelTransformMatrix,position);
//draw
currentActor.draw(renderPipelineState,openGLState);
@ -154,7 +154,7 @@ public class MainContentPipeline implements RenderPipeline {
modelTransformMatrix.translate(cameraModifiedPosition);
modelTransformMatrix.rotate(EntityUtils.getRotation(currentEntity));
modelTransformMatrix.scale(scaleVec.set(EntityUtils.getScale(currentEntity)));
currentActor.applySpatialData(new Matrix4d(modelTransformMatrix),new Vector3d(position));
currentActor.applySpatialData(modelTransformMatrix,position);
//draw
currentActor.draw(renderPipelineState,openGLState);
@ -177,7 +177,7 @@ public class MainContentPipeline implements RenderPipeline {
modelTransformMatrix.translate(cameraModifiedPosition);
modelTransformMatrix.rotate(EntityUtils.getRotation(currentEntity));
modelTransformMatrix.scale(scaleVec.set(EntityUtils.getScale(currentEntity)));
currentActor.applySpatialData(new Matrix4d(modelTransformMatrix),new Vector3d(position));
currentActor.applySpatialData(modelTransformMatrix,position);
//draw
currentActor.draw(renderPipelineState,openGLState);

View File

@ -104,7 +104,7 @@ public class NormalsForOutlinePipeline implements RenderPipeline {
modelTransformMatrix.translate(cameraModifiedPosition);
modelTransformMatrix.rotate(EntityUtils.getRotation(currentEntity));
modelTransformMatrix.scale(scaleVec.set(EntityUtils.getScale(currentEntity)));
currentActor.applySpatialData(new Matrix4d(modelTransformMatrix),new Vector3d(position));
currentActor.applySpatialData(modelTransformMatrix,position);
//draw
currentActor.draw(renderPipelineState,openGLState);
}

View File

@ -140,7 +140,7 @@ public class ShadowMapPipeline implements RenderPipeline {
modelTransformMatrix.translate(cameraModifiedPosition);
modelTransformMatrix.rotate(EntityUtils.getRotation(currentEntity));
modelTransformMatrix.scale(scaleVec.set(EntityUtils.getScale(currentEntity)));
currentActor.applySpatialData(new Matrix4d(modelTransformMatrix),new Vector3d(position));
currentActor.applySpatialData(modelTransformMatrix,position);
//draw
currentActor.draw(renderPipelineState,openGLState);
}