this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: 100% CPU use in App.run

durationTo is inverted, making it a busy loop.

authored by

gliptic and committed by
Tim Culverhouse
70abae4a 0c9d3cb7

+1 -1
+1 -1
src/vxfw/App.zig
··· 112 112 113 113 while (true) { 114 114 const now = std.Io.Timestamp.now(self.io, .real); 115 - const duration = next_frame.durationTo(now); 115 + const duration = now.durationTo(next_frame); 116 116 if (duration.nanoseconds <= 0) { 117 117 // Deadline exceeded. Schedule the next frame 118 118 next_frame = now.addDuration(tick);