Quote: "Which seems to be what Stab in the Dark software was essentially saying at the outset."
I agree, took me awhile to grasp that point.
I get 100% success with the device lost functions in the Plug-In on Windows 7 and 8.1. I use the internal callback functions which may be a little flaky in how they work with syncing and the render cycle.
The attached dll uses the device lost method I use in Dark GDK. This dll make the function Device Reset obsolete and requires modification to the code. Let me know how this works out, Please! Looking into what could be causing the leak.
width as integer
height as integer
depth as integer
SteelTex as integer
SteelTexN as integer
t as integer
modeflag as integer
width = desktop width()
height = desktop height()
depth = screen depth()
SteelTex = 1
SteelTexN = 2
modeflag = 0
set display mode width, height, depth
sync on
gosub init
t = timer()
do
if device lost()
gosub init
else
set cursor 0, 0
print "FPS: ";screen fps()
if (timer()>t+600)
gosub cleanup
if (modeflag)
set display mode width, height, depth
else
set display mode 800, 600, depth
endif
t = timer()
gosub init
modeflag = modeflag~~1
endif
sync
endif
loop
end
init:
backdrop on
autocam off
position camera 0, 0, -150
load image "media\floor.dds", SteelTex
load image "media\floor_n.dds", SteelTexN
make object box 1, 500, 1, 500
position object 1, 0, -45, 0
scale object texture 1, 5, 5
texture object 1, 0, SteelTex
texture object 1, 1, SteelTexN
texture object 1, 2, SteelTex
if (effect exist(1))
delete effect 1
endif
load effect "media\reliefmapping.fx", 1, 0
set object effect 1, 1
return
cleanup:
set pixel shader off 1
set vertex shader off 1
return