dx9 device lost with Ogre 1.12.11

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
suny
Greenskin
Posts: 137
Joined: Thu Mar 12, 2020 5:53 pm
x 60

dx9 device lost with Ogre 1.12.11

Post 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
paroj
OGRE Team Member
OGRE Team Member
Posts: 1993
Joined: Sun Mar 30, 2014 2:51 pm
x 1073
Contact:

Re: dx9 device lost with Ogre 1.12.11

Post by paroj »

this is a known issue with the 1.12.11 release. Either update to master or stay at 1.12.10
User avatar
suny
Greenskin
Posts: 137
Joined: Thu Mar 12, 2020 5:53 pm
x 60

Re: dx9 device lost with Ogre 1.12.11

Post by suny »

Thanks!
For info, I'm on Master, 8th of April, and it's still broken.
S.
paroj
OGRE Team Member
OGRE Team Member
Posts: 1993
Joined: Sun Mar 30, 2014 2:51 pm
x 1073
Contact:

Re: dx9 device lost with Ogre 1.12.11

Post by paroj »

then you probably need
RenderSystem::setConfigOption("Multi device memory hint", "Auto hardware buffers management")
User avatar
suny
Greenskin
Posts: 137
Joined: Thu Mar 12, 2020 5:53 pm
x 60

Re: dx9 device lost with Ogre 1.12.11

Post by suny »

Fixed it!
Thanks for your help paroj.
S.
Post Reply