[2.1] samples running with sudden fps drop

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Post Reply
riveranb
Gnoblar
Posts: 7
Joined: Tue Sep 26, 2017 1:35 am

[2.1] samples running with sudden fps drop

Post by riveranb »

Hi, I am a new user of OGRE.
I just built v2.1 and played with it for some days.
Use CMake to prepare visual studio 2015 (x86/x64 platform) solution files for OGRE.

But I discovered that all samples running on my laptop, sometimes I experienced obvious fps drop.
My laptop is HP EliteBook 840 G3, with Intel(R) HD Graphics 520_0
(CPU ID: GenuineIntel: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz)

I also tested samples on another laptop with nVidia quadro m2000m card, still I experienced the same fps drop.
Fps drop happens most obviously when I rotate camera.
Is there anyone else has the same experience with OGRE v2.1 samples? or just me?
123iamking
Gremlin
Posts: 152
Joined: Sat Aug 12, 2017 4:16 pm
x 4

Re: [2.1] samples running with sudden fps drop

Post by 123iamking »

Have you run Ogre Sample with Release mode? (refer this post)
al2950
OGRE Expert User
OGRE Expert User
Posts: 1227
Joined: Thu Dec 11, 2008 7:56 pm
Location: Bristol, UK
x 157

Re: [2.1] samples running with sudden fps drop

Post by al2950 »

You may be seeing stutters caused by shaders being compiled. This is normal for the sample apps, but in productions applications we normally cache all possible shaders so they dont need to be re-compiled during runtime. For more info search for 'shader cache' in the forums
riveranb
Gnoblar
Posts: 7
Joined: Tue Sep 26, 2017 1:35 am

Re: [2.1] samples running with sudden fps drop

Post by riveranb »

I think maybe I was doing something wrong to cause fps drop.
That day I just cloned the whole OGRE sources to another path.
But I forgot I used CMake to generate all projects and solution (.vcxproj / .sln), and CMake used to hardcode absolute paths for all settings (include paths/used libs and dll paths/ ...).

After I deleted old OGRE sources, all compilation came to errors for incorrect paths.
So I fixed all relative paths in projects properties, and after that with one rebuild, I did not experienced another obvious fps drop again.

Thanks for all your reply, your info is helpful.
Post Reply