shawn
Topic Author
Posts: 13
Joined: 14 Mar 2019, 10:05

can't show anything if i use mult thread and mult camera in unity

23 May 2019, 12:30

I am trying to separate noesisui thread and unity render thread in unity! I invoked View.Update in ui thread and NoesisRenderer.RenderXXX in Unity Thread. it worked fine. but I encounted some problem that there was nothing showing when I created more than one View and Camera. the noesis ver is 2.2.2 and unity version is 2018.4.01
emm. it's seems my fault! it can display right now, but sometime times unity crashs.it's probably my problem. but could you supply the pdb file ,so that i may guess what happens
 
shawn
Topic Author
Posts: 13
Joined: 14 Mar 2019, 10:05

Re: can't show anything if i use mult thread and mult camera in unity

24 May 2019, 05:21

emm. it's seems my fault! it can display right now, but sometime times unity crashs.it's probably my problem. but could you supply the pdb file ,so that i may guess what happens
 
ducdanganhit
Posts: 25
Joined: 18 May 2019, 10:46

Re: can't show anything if i use mult thread and mult camera in unity

24 May 2019, 14:57

I am trying to separate noesisui thread and unity render thread in unity! I invoked View.Update in ui thread and NoesisRenderer.RenderXXX in Unity Thread. it worked fine. but I encounted some problem that there was nothing showing when I created more than one View and Camera. the noesis ver is 2.2.2 and unity version is 2018.4.01
emm. it's seems my fault! it can display right now, but sometime times unity crashs.it's probably my problem. but could you supply the pdb file ,so that i may guess what happens
Did you try with normal thread ? Not Unity thread.
 
User avatar
jsantos
Site Admin
Posts: 3918
Joined: 20 Jan 2012, 17:18
Contact:

Re: can't show anything if i use mult thread and mult camera in unity

25 May 2019, 10:33

Could you elaborate a bit more about what you are trying to achieve? The Rendering Architecture Guide is probably useful here. Inspecting our NoesisView implementation is the best way to discover how to implement custom scenarios. The file NoesisRenderer.cs contains all the resources you need to interact with the Render thread in Unity. It must be done this way, because the render thread is not available in C#, it is internally implemented in C++.
 
shawn
Topic Author
Posts: 13
Joined: 14 Mar 2019, 10:05

Re: can't show anything if i use mult thread and mult camera in unity

27 May 2019, 09:44

Could you elaborate a bit more about what you are trying to achieve? The Rendering Architecture Guide is probably useful here. Inspecting our NoesisView implementation is the best way to discover how to implement custom scenarios. The file NoesisRenderer.cs contains all the resources you need to interact with the Render thread in Unity. It must be done this way, because the render thread is not available in C#, it is internally implemented in C++.
Yes,Because my business code run in sub thread,I have saw the Rendering Architecture Guide. I have refered your NoesisView and modified it to make it support multthread.
For example, I invok (Noesis.View view = new Noesis.View(FrameworkElement ele),view.Update(double time),view.TouchUp TouchDown TouchMove KeyDown etc..) in ui thread(sub thread).
I invok
NoesisRenderer.RenderOnscreen(View, FlipRender(), _commands);
                Graphics.ExecuteCommandBuffer(_commands);
                GL.InvalidateState();
ect... on main tread(unity main thread).

but i am not sure if this is a good idea. could you give me some advice?
 
User avatar
jsantos
Site Admin
Posts: 3918
Joined: 20 Jan 2012, 17:18
Contact:

Re: can't show anything if i use mult thread and mult camera in unity

28 May 2019, 10:35

but i am not sure if this is a good idea. could you give me some advice?
Well, I don't see anything conceptually wrong but I am not sure if Unity allows that kind of things. Could you open a private ticket about the PDB? I will send you a copy.
 
shawn
Topic Author
Posts: 13
Joined: 14 Mar 2019, 10:05

Re: can't show anything if i use mult thread and mult camera in unity

29 May 2019, 03:42

but i am not sure if this is a good idea. could you give me some advice?
Well, I don't see anything conceptually wrong but I am not sure if Unity allows that kind of things. Could you open a private ticket about the PDB? I will send you a copy.
Yes! it can work but has some problem. I will continue to explore it.
I applied a new private ticket herehttps://www.noesisengine.com/bugs/view.php?id=1478,
Thank you so much,
 
User avatar
jsantos
Site Admin
Posts: 3918
Joined: 20 Jan 2012, 17:18
Contact:

Re: can't show anything if i use mult thread and mult camera in unity

29 May 2019, 10:23

PDB sent

Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot] and 65 guests