no mipmap in irrlicht0.7 with directx9
-
- Posts: 237
- Joined: Thu May 27, 2004 3:18 pm
- Location: Canada
no mipmap in irrlicht0.7 with directx9
I found why irrlicht0.7 techdemo was really slower than 0.6
you can see thread about investigating the problem here, (I've also did benchmarks and posted my computer specs):
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=3759
As you can see in the screenshots I made:
http://zeldapod.freeunixhost.com/pivot/entry.php?id=8
For a reason I don't know mipmapping is disabled with directx9
so that's why it is so slow.
directx8 just work fine.
now someone need to find why there is that bug (I'm not an advanced coder so I can't find it)
you can see thread about investigating the problem here, (I've also did benchmarks and posted my computer specs):
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=3759
As you can see in the screenshots I made:
http://zeldapod.freeunixhost.com/pivot/entry.php?id=8
For a reason I don't know mipmapping is disabled with directx9
so that's why it is so slow.
directx8 just work fine.
now someone need to find why there is that bug (I'm not an advanced coder so I can't find it)
-
- Posts: 237
- Joined: Thu May 27, 2004 3:18 pm
- Location: Canada
1. Yes with irrlicht0.6 both directx8 and directx9 were looking exactly the same (but directx9 was a little bit faster). As you can see in my screenshots, mipmapping worked with 0.6 and now it don't work.
2. Yes finally I found that with examples from 0.6 and example from 0.7, when you compile and run them with irrliicht 0.7, there is no mipsmap with directx9 (so it is really slower)
but in both cases the directx8 mipmapping seems to work and they both look the same.
3. Not yet. It it suppose to change anything?
2. Yes finally I found that with examples from 0.6 and example from 0.7, when you compile and run them with irrliicht 0.7, there is no mipsmap with directx9 (so it is really slower)
but in both cases the directx8 mipmapping seems to work and they both look the same.
3. Not yet. It it suppose to change anything?
Ok... it might explain it... But why did mipmapping with directx9 work with irrlicht0.6 and now it don't work???mipmaps in DX8 are generated by software, an DX9 by hardware
Last edited by cmoibenlepro on Tue Sep 14, 2004 3:29 pm, edited 1 time in total.
-
- Posts: 237
- Joined: Thu May 27, 2004 3:18 pm
- Location: Canada
nope, youre sceenshots are gone (link asks for login)...cmoibenlepro wrote:As you can see in my screenshots, mipmapping worked with 0.6 and now it don't work.
you tell mecmoibenlepro wrote:3. Not yet. It it suppose to change anything?
dunno, but at least it's showing that it should work.. that there is a bug that can possibly be fixed...cmoibenlepro wrote:But why did mipmapping with directx9 work with irrlicht0.6 and now it don't work???
-
- Posts: 237
- Joined: Thu May 27, 2004 3:18 pm
- Location: Canada
It seems that the free webhosting service have problems now.
I can't get my website to work as it did before...
Anyway, I posted my screenshots on my old website on freewebs.com
It seems to work...
So you can see my screenshots here:
http://www.freewebs.com/irrlicht/irrlicht_bugs.html
BTW, you can note the difference of fps between both with directx9 caused by the fact that there is no mipmap with irrlicht 0.7
(it drops from 102 to 29... ouch!)
I can't get my website to work as it did before...
Anyway, I posted my screenshots on my old website on freewebs.com
It seems to work...
So you can see my screenshots here:
http://www.freewebs.com/irrlicht/irrlicht_bugs.html
BTW, you can note the difference of fps between both with directx9 caused by the fact that there is no mipmap with irrlicht 0.7
(it drops from 102 to 29... ouch!)
-
- Posts: 237
- Joined: Thu May 27, 2004 3:18 pm
- Location: Canada
I doubt its the lack of mipmapping that causes the slowdown. I have exactly the same framerates with mipmapping on or off in both dx8 and 9 (techdemo)cmoibenlepro wrote:BTW, you can note the difference of fps between both with directx9 caused by the fact that there is no mipmap with irrlicht 0.7
(it drops from 102 to 29... ouch!)
Mipmapping is more an issue of display quality than performance (i think).
Try this:
Run techdemo with DX8 and mipmapping turned off with this in in CDemo::run():
Code: Select all
driver->setTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS,false);
-
- Posts: 237
- Joined: Thu May 27, 2004 3:18 pm
- Location: Canada
I did it. Now I got 28-30 fps with directx8.Try this:
Run techdemo with DX8 and mipmapping turned off with this in in CDemo::run():
code:
--------------------------------------------------------------------------------
driver->setTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS,false);
--------------------------------------------------------------------------------
I'm curious about the result (framerate)...
So it proves with no doubt that the lack of mipmapping cause the serious slowdown.
I tried to build irrlichtNX but I get problems because visualc++ toolkit complains it can't find libci.lib I got also this problem with irrlicht0.7 dll
strange... It worked perfectly before, I will need to fix that.
-
- Posts: 237
- Joined: Thu May 27, 2004 3:18 pm
- Location: Canada
Ok thanks bal! I got irrlichtNX to compile.
And I confirm: mipmaps don't work with directx9 but it works with directx8
Also, I confirm that it is the lack of mipmap that makes the slowdown. With directx8 without mipmaps there is the same drop in fps.
BTW, I found that if I close up the camera on a wall, (so the mipmapping is not used) the fps go up to 150 with directx9, then it drops again to 30 if turn around the camera.
***UPDATE!***
I found (I think) the reason why mipmapping doesn't work with directx9 and irrlicht0.7 while it worked perfectly with irrlicht0.6.
Also I found why it seems to happen only on some hardware.
This is a quote from the changes.txt of irrlicht0.7:
But now it use hardware... I suppose that my old graphic card (a geforce2) don't support it.
If it is true, that would explain why directx8 mipmaps still work on my computer (because it's software mipmaps) and directx9 don't.
Is there a command to switch between harware and software mipmaps? So I could see if it solve the problem...
And I confirm: mipmaps don't work with directx9 but it works with directx8
Also, I confirm that it is the lack of mipmap that makes the slowdown. With directx8 without mipmaps there is the same drop in fps.
BTW, I found that if I close up the camera on a wall, (so the mipmapping is not used) the fps go up to 150 with directx9, then it drops again to 30 if turn around the camera.
***UPDATE!***
I found (I think) the reason why mipmapping doesn't work with directx9 and irrlicht0.7 while it worked perfectly with irrlicht0.6.
Also I found why it seems to happen only on some hardware.
This is a quote from the changes.txt of irrlicht0.7:
So I think that irrlicht0.6 was also using sorftware mipmapping with directx9- Hardware mip map level generation of textures is now supported when using D3D9.
But now it use hardware... I suppose that my old graphic card (a geforce2) don't support it.
If it is true, that would explain why directx8 mipmaps still work on my computer (because it's software mipmaps) and directx9 don't.
Is there a command to switch between harware and software mipmaps? So I could see if it solve the problem...