Multithreading and Minimized Window
Posted: Sun Aug 23, 2009 3:10 pm
Hi Norbo,
i recognized that when i minimize the window of our game that i can't restore it by clicking ob the tab in the taskbar (results in just the error ping sound). Through updating to older revision i found out that this is caused through the multithreading initialize.
When i simple comment this part out it works fine. I throught it was a problem of BEPU and checked the demos. But there the minimize and restore works fine with multithreading. Uncommented some mouse und cameraupdate parts to make this even possible.
Do you have any idea why it doesn't work in our game?I know this can caused by several other thinks like our inputsystem. But in fact, don't use multithreadinginitialization works. So may i just forgot to inform BEPU when the app goes inactive or something like this.
Thanks.
i recognized that when i minimize the window of our game that i can't restore it by clicking ob the tab in the taskbar (results in just the error ping sound). Through updating to older revision i found out that this is caused through the multithreading initialize.
Code: Select all
if (Environment.ProcessorCount > 1)
{
for (int i = 0; i < Environment.ProcessorCount; i++)
{
space.threadManager.add();
}
space.useMultithreadedUpdate = true;
}
Do you have any idea why it doesn't work in our game?I know this can caused by several other thinks like our inputsystem. But in fact, don't use multithreadinginitialization works. So may i just forgot to inform BEPU when the app goes inactive or something like this.
Thanks.