can't show anything if i use mult thread and mult camera in unity
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
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
Re: can't show anything if i use mult thread and mult camera in unity
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:
Re: can't show anything if i use mult thread and mult camera in unity
Did you try with normal thread ? Not Unity thread.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
Re: can't show anything if i use mult thread and mult camera in unity
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++.
Re: can't show anything if i use mult thread and mult camera in unity
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.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++.
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
Code: Select all
NoesisRenderer.RenderOnscreen(View, FlipRender(), _commands);
Graphics.ExecuteCommandBuffer(_commands);
GL.InvalidateState();
but i am not sure if this is a good idea. could you give me some advice?
Re: can't show anything if i use mult thread and mult camera in unity
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.but i am not sure if this is a good idea. could you give me some advice?
Re: can't show anything if i use mult thread and mult camera in unity
Yes! it can work but has some problem. I will continue to explore it.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.but i am not sure if this is a good idea. could you give me some advice?
I applied a new private ticket herehttps://www.noesisengine.com/bugs/view.php?id=1478,
Thank you so much,
Who is online
Users browsing this forum: Bing [Bot], Semrush [Bot] and 65 guests