Are two instances of irrlicht independent?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Kuzy
Posts: 21
Joined: Fri Feb 18, 2011 10:30 am

Are two instances of irrlicht independent?

Post by Kuzy »

Hello,

I have written an application where two instances of irrlicht are running (via two different irrlicht dlls). Now I encountered the behaviour that one of them gets a lot slower, when the other has a lot to display.
They are executed in two different threads and should run on different CPU-cores.
Is there a dependency between the two instances (I use directX) or is it just the GPU on my graphics card which slows it down?

Thanks in Advance
Kuzy
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Are two instances of irrlicht independent?

Post by hybrid »

To avoid any sharing you should link Irrlicht statically into your app. In that case, two instances are for sure completely independent and only the gfx driver/gfx card will be shared and result in a slow down.
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Are two instances of irrlicht independent?

Post by mongoose7 »

There can't be any sharing. This is not Windows 3.1/Windows 95. Every task has its own address space. The code of the shared object is mapped into it.

But what is the impact of asking the graphics driver to support two (independent) contexts?
Post Reply