About UiRenderPass's sLock

12 views
Skip to first unread message

goesm...@hotmail.com

unread,
Jan 8, 2017, 8:57:04 PM1/8/17
to omegalib
Hi Alessandro:
    Long time no see.
    These days I found UiRenderpass.cpp have a global lock named sLock. And this lock will lock in UiRenderPass::render, this mean all UiRenderPasses are render in serial. My computer has four graphics with four UiRenderPass instance.
    So I want to know whar's the use of this lock, and can I remove this lock?
Thank you!
    

Alessandro Febretti

unread,
Jan 10, 2017, 12:51:46 AM1/10/17
to omegalib
Hi!

The lock is mostly there because the original implementation of some of the Ui classes was not thread safe. You can try removing the lock and see if it works with your application.. If it breaks we can try and take a look at it together.

Also - note that now there is a module that lets you use html to render user interfaces: https://github.com/omega-hub/omium (right now only works on Windows and OSX)


by the way - I'm writing my dissertation on Omegalib and I'm collecting some information on projects it has been used on. Would you be willing to send me a short description of what you have used it for, perhaps with one or two pictures (assuming this is public stuff) - you can send it to my email address - feb...@gmail.com

goesm...@hotmail.com

unread,
Jan 12, 2017, 12:07:39 AM1/12/17
to omegalib
Of course! I have sent a picture to your email.
And I'm trying to remove the lock and testing my application to find if any bugs.
Reply all
Reply to author
Forward
0 new messages