Jump to content

[SOLVED] Unigine::Engine::update() method blocks without input focus


photo

Recommended Posts

Posted

Hi,

 

 I have very simple test application which initializes Unigine, loads world (valley)

and enters a loop calling update(), render() and swap() on Unigine::Engine instance.

 

Everything works fine when application window has input focus.

When the focus is lost, application stops because Engine::update()

methods blocks indefinitely until focus is regained.

 

Is it normal behaviour ? I would definitely prefer graphics working regardless

of window input focus.

 

I'm still a beginner with Unigine, so it's perfectly possible I made some basic mistake.

 

Thanks in advance for any help.

 

Regards,

Jarek

 

 

Posted

> engine.app.setUpdate(1)

 

Thanks a lot, it seems to be OK now.

 

Regards,

Jarek

×
×
  • Create New...