MCPcopy Create free account
hub / github.com/badvision/jace / tick

Method tick

src/main/java/jace/hardware/FPSMonitorDevice.java:43–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 VideoSoftSwitch vss;
42
43 @Override
44 public void tick() {
45 tickCounter += cpuPerClock;
46 boolean vblState = vss.getState();
47 if (!vblState && lastVBLState) {
48 frameCounter++;
49 }
50 lastVBLState = vblState;
51 if (--checkCounter <= UPDATE_CHECK_FREQUENCY) {
52 updateIcon();
53 checkCounter = UPDATE_CHECK_FREQUENCY;
54 }
55 }
56
57 Label initLabel(Label l) {
58 l.setTextFill(Color.WHITE);

Callers

nothing calls this directly

Calls 2

updateIconMethod · 0.95
getStateMethod · 0.45

Tested by

no test coverage detected