Open xiaoshengduan opened 2 years ago
are you compiling with the -prod flag and clang backend? also are you using GC boehm or autofree with GC none?
v -autofree -prod -stats clock.v
I was able to reproduce it. There's ui mode in gg which limits number of redraws per second, but it can't apply here, since everything is refreshed frequently (the arrow is constantly moving).
Almost all gui demo programs have this problem
The clock example, or most gui examples, have problems with excessive gpu and cpu consumption。 Compared with the same examples in other languages such as rust and golang, it is more than 10 times higher