Page 1 of 1

dx9 device lost with Ogre 1.12.11

Posted: Sun Apr 11, 2021 11:27 am
by suny
Ogre Version: Ogre 1.12.11
Operating System: Windows 7
Render System: :?: Dx9cex

I was using Ogre 1.12.5 and my game was working well on Nvidia GPU (but I still have black with Compositor with AMD cards).
I updated to Ogre 1.12.11 and now, when I resize my window, I'm loosing the device, and then the viewports are black for every 3D elements.
The overlays and particles still render fine.

Can I do something to fix that?
Should I not bother and use DX11 instead?
S.

Code: Select all

D3D9 device: 0x[047AFB60] lost. Releasing D3D9 texture: c104/scene/SHMUP_CREATOR_by_bulo_studio_-_v0.9.33.3_-_April_2021_-_Spring!
11:53:27: Released D3D9 texture: c104/scene/SHMUP_CREATOR_by_bulo_studio_-_v0.9.33.3_-_April_2021_-_Spring!
11:53:27: D3D9 device: 0x[047AFB60] lost. Releasing D3D9 texture: 324403008_Canvas
11:53:27: Released D3D9 texture: 324403008_Canvas
11:53:27: D3D9 device: 0x[047AFB60] lost. Releasing D3D9 texture: 326740120_Canvas
11:53:27: Released D3D9 texture: 326740120_Canvas
11:53:27: D3D9 device: 0x[047AFB60] lost. Releasing D3D9 texture: 326750048_Canvas
11:53:27: Released D3D9 texture: 326750048_Canvas
11:53:27: D3D9 device: 0x[047AFB60] lost. Releasing D3D9 texture: 326748880_Canvas
11:53:27: Released D3D9 texture: 326748880_Canvas
11:53:27: D3D9 device: 0x[047AFB60] lost. Releasing D3D9 texture: 328598896_Canvas
11:53:27: Released D3D9 texture: 328598896_Canvas
11:53:27: D3D9 device: 0x[047AFB60] lost. Releasing D3D9 texture: 334382360_Canvas
11:53:27: Released D3D9 texture: 334382360_Canvas
11:53:27: D3D9 device: 0x[047AFB60] lost. Releasing D3D9 texture: Ogre/ShadowTexture0
11:53:27: Released D3D9 texture: Ogre/ShadowTexture0
11:53:27: D3D9 device: 0x[047AFB60] lost. Releasing D3D9 texture: c105/scene/SHMUP_CREATOR_by_bulo_studio_-_v0.9.33.3_-_April_2021_-_Spring!
11:53:27: Released D3D9 texture: c105/scene/SHMUP_CREATOR_by_bulo_studio_-_v0.9.33.3_-_April_2021_-_Spring!
11:53:27: D3D9 device: 0x[047AFB60] lost. Releasing D3D9 texture: c101/outlinesSelected/SHMUP_CREATOR_by_bulo_studio_-_v0.9.33.3_-_April_2021_-_Spring!
11:53:27: Released D3D9 texture: c101/outlinesSelected/SHMUP_CREATOR_by_bulo_studio_-_v0.9.33.3_-_April_2021_-_Spring!
11:53:27: D3D9 device: 0x[047AFB60] lost. Releasing D3D9 texture: c103/scene/SHMUP_CREATOR_by_bulo_studio_-_v0.9.33.3_-_April_2021_-_Spring!
11:53:27: Released D3D9 texture: c103/scene/SHMUP_CREATOR_by_bulo_studio_-_v0.9.33.3_-_April_2021_-_Spring!
11:53:27: D3D9 device: 0x[047AFB60] lost. Releasing D3D9 texture: c102/outlinesHoover/SHMUP_CREATOR_by_bulo_studio_-_v0.9.33.3_-_April_2021_-_Spring!
11:53:27: Released D3D9 texture: c102/outlinesHoover/SHMUP_CREATOR_by_bulo_studio_-_v0.9.33.3_-_April_2021_-_Spring!
11:53:27: D3D9 device: 0x[047AFB60] lost. Releasing D3D9 texture: c108/scene/SHMUP_CREATOR_by_bulo_studio_-_v0.9.33.3_-_April_2021_-_Spring!
11:53:27: Released D3D9 texture: c108/scene/SHMUP_CREATOR_by_bulo_studio_-_v0.9.33.3_-_April_2021_-_Spring!
11:53:27: D3D9 device: 0x[047AFB60] lost. Releasing D3D9 texture: c106/outlinesSelected/SHMUP_CREATOR_by_bulo_studio_-_v0.9.33.3_-_April_2021_-_Spring!
11:53:27: Released D3D9 texture: c106/outlinesSelected/SHMUP_CREATOR_by_bulo_studio_-_v0.9.33.3_-_April_2021_-_Spring!
11:53:27: D3D9 device: 0x[047AFB60] lost. Releasing D3D9 texture: c107/outlinesHoover/SHMUP_CREATOR_by_bulo_studio_-_v0.9.33.3_-_April_2021_-_Spring!
11:53:27: Released D3D9 texture: c107/outlinesHoover/SHMUP_CREATOR_by_bulo_studio_-_v0.9.33.3_-_April_2021_-_Spring!
11:53:27: D3D9 Device 0x[047AFB60] entered lost state
11:53:27: !!! Direct3D Device successfully restored.
11:53:27: D3D9 device: 0x[047AFB60] was reset

Re: dx9 device lost with Ogre 1.12.11

Posted: Sun Apr 11, 2021 11:30 am
by paroj
this is a known issue with the 1.12.11 release. Either update to master or stay at 1.12.10

Re: dx9 device lost with Ogre 1.12.11

Posted: Sun Apr 11, 2021 11:37 am
by suny
Thanks!
For info, I'm on Master, 8th of April, and it's still broken.
S.

Re: dx9 device lost with Ogre 1.12.11

Posted: Sun Apr 11, 2021 3:12 pm
by paroj
then you probably need
RenderSystem::setConfigOption("Multi device memory hint", "Auto hardware buffers management")

Re: dx9 device lost with Ogre 1.12.11

Posted: Sun Apr 11, 2021 8:33 pm
by suny
Fixed it!
Thanks for your help paroj.
S.