elecman
Topic Author
Posts: 90
Joined: 20 Jul 2014, 04:28

Render on demand

28 Oct 2016, 02:03

I haven't looked at Noesis GUI for a while so excuse me if this is old news, but is it possible now to render on demand? So instead of wasting battery/CPU/GPU time, only render when something has changed?
 
User avatar
ai_enabled
Posts: 221
Joined: 18 Jul 2013, 05:28
Contact:

Re: Render on demand

28 Oct 2016, 12:45

Yes, that's possible. You have complete control over when NoesisGUI renders and where it renders.
AtomicTorch Studio Pte. Ltd. http://atomictorch.com
 
User avatar
sfernandez
Site Admin
Posts: 1912
Joined: 22 Dec 2011, 19:20

Re: Render on demand

28 Oct 2016, 22:15

Hi,

Which SDK are you using: native C++, C# or Unity?

In C++ and C# SDK you decide when to call Render() to draw the UI, so you have total control.

In Unity there are 2 scenarios:
- If NoesisGUIPanel is attached to the main camera, then we render whenever Unity updates the main screen.
- If NoesisGUIPanel is attached to an object with a RenderTexture, then you can control when UI is rendered by enabling/disabling the object.
 
elecman
Topic Author
Posts: 90
Joined: 20 Jul 2014, 04:28

Re: Render on demand

29 Oct 2016, 01:13

I use Unity, using a render-texture in order to render to virtual "displays" in the scene.

But if I disable the object, the virtual screen will disappear as well, which kind of defeats the purpose. Or am I missing something?
 
User avatar
sfernandez
Site Admin
Posts: 1912
Joined: 22 Dec 2011, 19:20

Re: Render on demand

31 Oct 2016, 16:32

Hi,

You can have the object with the NoesisGUI component in a different layer and render it only when texture needs to be updated. This layer won't be rendered by the Main Camera, but you can apply the same texture to any other object included in the default layer and you will see the UI always there, even if you disable the NoesisGUI object from the other layer.

Do you understand what I mean?
 
elecman
Topic Author
Posts: 90
Joined: 20 Jul 2014, 04:28

Re: Render on demand

31 Oct 2016, 18:03

Yes, that makes sense. Thanks!
 
User avatar
jsantos
Site Admin
Posts: 2904
Joined: 20 Jan 2012, 17:18
Contact:

Re: Render on demand

03 Nov 2016, 01:37

Anyway this is far from being an optimal solution. In v1.3 we are working to support this transparently if the user indicates that the content of the buffer is preserved from frame to frame. In that scenario we can avoid doing paints or just updating only the changed areas.
 
nokola
Posts: 188
Joined: 10 Mar 2015, 05:29

Re: Render on demand

13 Nov 2016, 07:42

This is awesome! +10 for render changed regions only.

Who is online

Users browsing this forum: No registered users and 0 guests