ui
ui copied to clipboard
Suboptimal performance
V version: V 0.1.29 4d2c8a4 UI version: 1e0c0e6 OS: Win10
What did you do?
examples> v run users.v
or examples> users.exe
What did you expect to see? I expect to see the tiny UI immediately (finally, it is native code).
What did you see instead? I first see the V UI Demo window occur, after ~2s I see the content with some massive flickering. Even Java applications launch faster.
v run
builds programs before running them. Use v users.v
then users.exe
.
Building is slow because modules are not cached right now, and entire ui module is rebuilt every time.
flickering shouldn't happen, need to investigate
Please reread the issue. I was not writing about the compilation time, but the time between showing the window outline and its content. The problem is reproducible even when launching users.exe
(or any other one from the examples
directory) directly.
Do you experience the same delay even if you launch a exe build with v - prod ...
?
Sounds like a driver issue. OpenGL is used on Windows instead of D3D at the moment.
Do you experience the same delay even if you launch a exe build with
v -prod ...
?
Yes, same delay. Do you need any further information from my system?
Can you record a demo? That'd be super useful.
Thanks. So it's not flickering, it's just loading something on init. Could be a Windows antivirus scan thing?
This doesn't happen on other systems. But I'll investigate with a windows vm.
On linux Ubuntu 18.04 it is super fast. v version V 0.2.2 1bcc45f