Sense number of graphics operations (#10898)
* Sense number of graphics operations * int to long
This commit is contained in:
@@ -41,6 +41,7 @@ public enum LAccess{
|
||||
displayWidth,
|
||||
displayHeight,
|
||||
bufferUsage,
|
||||
operations,
|
||||
size,
|
||||
solid,
|
||||
dead,
|
||||
|
||||
@@ -78,6 +78,7 @@ public class LogicDisplay extends Block{
|
||||
public float stroke = 1f;
|
||||
public LongQueue commands = new LongQueue(256);
|
||||
public @Nullable Mat transform;
|
||||
public long operations;
|
||||
|
||||
@Override
|
||||
public void draw(){
|
||||
@@ -111,6 +112,7 @@ public class LogicDisplay extends Block{
|
||||
return switch(sensor){
|
||||
case displayWidth, displayHeight -> displaySize;
|
||||
case bufferUsage -> commands.size;
|
||||
case operations -> operations;
|
||||
default -> super.sense(sensor);
|
||||
};
|
||||
}
|
||||
@@ -121,6 +123,8 @@ public class LogicDisplay extends Block{
|
||||
for(int i = 0; i < added; i++){
|
||||
commands.addLast(graphicsBuffer.items[i]);
|
||||
}
|
||||
|
||||
operations++;
|
||||
}
|
||||
|
||||
public void processCommands(){
|
||||
|
||||
Reference in New Issue
Block a user