ui icon indicating copy to clipboard operation
ui copied to clipboard

Suboptimal performance

Open vmcrash opened this issue 3 years ago • 10 comments

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.

vmcrash avatar Sep 06 '20 16:09 vmcrash

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.

medvednikov avatar Sep 06 '20 17:09 medvednikov

flickering shouldn't happen, need to investigate

medvednikov avatar Sep 06 '20 18:09 medvednikov

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.

vmcrash avatar Sep 07 '20 06:09 vmcrash

Do you experience the same delay even if you launch a exe build with v - prod ... ?

serkonda7 avatar Sep 07 '20 08:09 serkonda7

Sounds like a driver issue. OpenGL is used on Windows instead of D3D at the moment.

medvednikov avatar Sep 07 '20 09:09 medvednikov

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?

vmcrash avatar Sep 07 '20 16:09 vmcrash

Can you record a demo? That'd be super useful.

medvednikov avatar Sep 07 '20 17:09 medvednikov

users

vmcrash avatar Sep 07 '20 21:09 vmcrash

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.

medvednikov avatar Sep 07 '20 21:09 medvednikov

On linux Ubuntu 18.04 it is super fast. v version V 0.2.2 1bcc45f

hubyhuby avatar Apr 10 '21 09:04 hubyhuby