Irrlicht speed decrease since 1.8.4

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Irrlicht speed decrease since 1.8.4

Post by kas1e »

@All
So i build latest trunk for OpenGL (currently 6240), to find out, that 09.MeshViewer example start to be 2 times slower than with 1.8.4. With 1.8.4. i have there on my setup 425 FPS, but with latest trunk version i do have just 225 FPS. Meaning we 2 times slower there.

Issue happens at least since some years for sure, at least 1 or 2 years ago when i do check latest trunk, it was the same. I do not know from where problem come, maybe example were changed ? Or something else in the code of Irrlicht ?

I may try to find the commit which start to be the guilty one, if there are interest in.
CuteAlien
Admin
Posts: 9651
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Irrlicht speed decrease since 1.8.4

Post by CuteAlien »

Sure always interested if something slows down. Thought I can't reproduce it on my systems. Tested with Linux debug&release and with Windows release on another system. In all cases trunk was somewhat faster than 1.8.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: Irrlicht speed decrease since 1.8.4

Post by kas1e »

Did you checked exactly 09.MeshViewer, right ?
CuteAlien
Admin
Posts: 9651
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Irrlicht speed decrease since 1.8.4

Post by CuteAlien »

Yes. With 2 different PC's (thought both with NVidia cards).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: Irrlicht speed decrease since 1.8.4

Post by kas1e »

Ok interesting, i will try then to find out when things start to be different, and maybe that will bring us a clue about
CuteAlien
Admin
Posts: 9651
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Irrlicht speed decrease since 1.8.4

Post by CuteAlien »

I was also trying a bit more. I always closed UI immediately and resized fullscreen in my tests. So I was thinking maybe it's the UI slowing down. But quick test right now with that enabled and without resizing it's still faster with trunk.
But to see if it's 3d or UI maybe run a pure 3d test, like profile_pins.cpp from https://github.com/mzeilfelder/irr-playground-micha
Or the profile_meshscenenodes.cpp (pretty similar). You can replace the getMesh call with some other small static mesh (or get whole repository and take my models, doesn't matter). Just copy it over some main.cpp from examples.

Then tune up the number of meshes shown until it really stresses the system a bit (you don't want too much FPS or the super slow setWindowCaption call can start distorting the numbers).

And you can also try with an animated mesh instead as animation calculation could also cause it maybe.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
CuteAlien
Admin
Posts: 9651
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Irrlicht speed decrease since 1.8.4

Post by CuteAlien »

Btw - which device are you using? Is this also about SDL device?I only tested X11 and Win64 so far.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: Irrlicht speed decrease since 1.8.4

Post by kas1e »

Yea, that SDL device i use of course , as i don't have any other for the moment :) Check plz SDL one as well to compare how it between 1.8.4 and current trunk
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: Irrlicht speed decrease since 1.8.4

Post by kas1e »

Checked other examples and found that also those examples to be 2 times slower in compare with 1.8.4 on SDL device at least:

1. 11.PerPixelLighting also 2 times slower. With 1.8.4 i have there 750 FPS in general, with current trunk i have just 350.
2. 12.TerrainRendering, with 1.8.4 : 1100 FPS, with current trunk : 450.
3. 15.LoadIrrFire, slower on 300-400 FPS
4. 20.ManagedLights - slower on 100 FSP (was 450, now 350).

But for example 13.RenderToTexture, this one 2 times faster. Was 650 FPS, now 1400.
CuteAlien
Admin
Posts: 9651
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Irrlicht speed decrease since 1.8.4

Post by CuteAlien »

Hm, I see - I also get this jumps in FPS. But has nothing to do with 1.8 vs trunk - also happens by simply starting same one several times. Maybe GPU warming up or some problem with timer. I'll try around if I get any idea. But just start your slow one a few times - good chance it'll get fast.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
CuteAlien
Admin
Posts: 9651
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Irrlicht speed decrease since 1.8.4

Post by CuteAlien »

Phew, giving up for today. Running a bit out of ideas. I'm pretty certain it's not the fps counter, from all tests I did that seems to be fine. And I can only reproduce it on one computer, while no matter how often I try my old system always has same FPS (which explains why I never noticed before).
But on new system I have it with Irrlicht trunk and 1.8 both. Starting often enough fps jumps. And it seems to happen at pretty much any FPS - so I can have jumps from 10000 to 20000 or jumps from 40 to 120 FPS.
And once it has settled on a certain FPS it stays that way - until scene changes. So moving camera can cause it to flip to the other speed. But then stays again.
I also experimented with more reproducible scenes and still got it.

Maybe it's my new graphic card? RTX 3060 here - not sure what your Amiga system is using. Unfortunately can't test that in my old system (won't fit ... thought maybe lucky as I really wouldn't want to move it around).

edit: It seems glxgears also jumps pretty exactly between ~40000 and ~47000 when I start several times. Maybe apps get different CPU cores when I run several applications in a row (not all cores on my CPU have the same speed).

edit2: No such jumps seem to happen (so far) when not doing any render calls. So only beginScene() - endScene() with nothing in between (so not CPU core to blame I guess).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: Irrlicht speed decrease since 1.8.4

Post by kas1e »

For me situation is different, it's pretty always reproducable and stable to see difference (especially 09.meshviewer example, very stable in that terms, i do have 420 vs 220 FPS). Does not matter how offten i run/exit it. That the same happens for me on RadeonHD and RadeonRX cards.
Post Reply