Performance monitor
Page 1 of 2

Author:  ravarcade [ Sat Mar 04, 2017 12:40 pm ]
Post subject:  Performance monitor

New thing in BAM. For now in beta version:

Now when you press F9 you will see somthing like that:

BAM now for every frame calcs time used to render frame, calc physics, run script.
On chart i also mark:
- green renctangle 11.1ms (90 Hz for VR)
- yellow rectangle 16.6ms (60 Hz)
So you will see if when physics consume too much time.

For every frame we have 3 values:
- frame time (in ms)
- physics time
- script time
BAM will capture 5 worst frames in each category: slowest frame time, physics, script.
It is displayed in 3 columns.
That worst frames are counter are reset after every press F9.

Author:  GeorgeH [ Sat Mar 04, 2017 4:19 pm ]
Post subject:  Re: Performance monitor


Your new tool appears to work although I am not sure of what the numbers mean. I have saved screenshots of Warlord where I have been having problems with low frame rate on Windows 10. I have also save a screenshot of Astrohits during multiball where I have had some trouble in the past with low frame rate but not today. I have also saved a screenshot of Creature from the Black Lagoon during multiball and have not been having any problems at all although I have to set "Hardware light to use" to 0. I included a copy of the Astrohits and Warlord tables.



Creature from the Black Lagoon

The problem Whitey and I have been is documented on this forum topic:




Author:  ravarcade [ Sat Mar 04, 2017 6:10 pm ]
Post subject:  Re: Performance monitor

On all charts you have "bluish" line. That line is amoung of time spend on script execution.
Note, that every third column on tabs is also "script" time.

Now look at Astrohits.
On chart "bluish" line is almost all time around 11 ms and from time to time it jumps to 26-28 ms. Also Pink line (Frame time) is alway ~5ms above that bluish line.
I'm 100% sure, that problem is in script.
I looke at script. There is a lot of "eval" & "execute" commands. It is first place where i will look what to change to improve performance.
Look also at "green" line (physics). It is almost all time well under 3ms. So physics here is not a problem,
Well... that script is source of problem.

Now look at Creature from black lagoon.
You have few spikes.
They all look like this:
spike in scrpit, same spike in physics and same spike in frame time.
My guess, all that spikes are when script do something like creation or destruction of ball.
There is no problems here. That spikes are normal.

Now look at Warlord.
You have huge spikes in "script".... well over 300ms. It is a lot.
That spikes are very regular. There is slow function executed every 500 ms or 1 sec (from chart i can't give exact number).
Again in script there is a lot "eval" & "execute".
I know, that script look good with that "eval" and "execute" command, but i blame it. (Maybe i'm wrong).
I will look at that scripts in few days. I will present here "solution".

Author:  GeorgeH [ Sun Mar 05, 2017 1:07 am ]
Post subject:  Re: Performance monitor


Thanks for looking at the data. I didn't notice the charts but I did notice the numbers are nearly the same on Warlords for both frame rate and script. So I was suspicious of the script.

One thing that is quite odd is the guys that use Windows 7 are not having trouble with Warlords. Whitey has a lower end Win 7 PC he is using on his cabinet and it plays Warlords better than his higher end desktop PC that is running Win 10. It doesn't make sense to me.


Author:  Popotte [ Sun Mar 05, 2017 8:06 am ]
Post subject:  Re: Performance monitor

For me, it's a DirectX, ddraw, ... problem due to Windows 10

Author:  Popotte [ Sun Mar 05, 2017 10:03 am ]
Post subject:  Re: Performance monitor

War Lord with Windows 7


Author:  Popotte [ Sun Mar 05, 2017 10:38 am ]
Post subject:  Re: Performance monitor

Same but changing execute with eval. Execute is really more heavy than Eval.
In 50 ms (and every 500 ms)
Before: 41 Execute and 90 Eval
After: 11 Execute and 120 Eval


Author:  ravarcade [ Sun Mar 05, 2017 1:59 pm ]
Post subject:  Re: Performance monitor

I think, that Antivirus may make huge difference here.

Many malvare programs hide dangerous stuff in plain encrypted text. That text after decoding is passed to functions like "execute" in script. Every time, when "execute" is called AV program should check that text if it is safe. On computer without AV it will take some time, but on computer with "stupid" AV it may be 0.3 second and it will destroy gameplay.

Effect of Poppote replacment of execute commands with eval:
41 x execute => ~19ms
11 x execute => ~4.2ms
It saves ~15 ms in frame time. This is big difference.

Author:  Whitey Weissman [ Sun Mar 05, 2017 2:38 pm ]
Post subject:  Re: Performance monitor

You evil geniuses!!! :)

I turned off my antivirus to see if it made a difference when playing Warlock or Astrohits, and guess what - NO frame drops whatsoever!!! Even on the highest settings. This is amazing!!!

So now we know where the performance issue lies.

Author:  GeorgeH [ Sun Mar 05, 2017 6:38 pm ]
Post subject:  Re: Performance monitor

I too like Whitey have tried turning off real time protection of Windows 10 Defender while playing Warlock. My frame rate stays set at 60 frames per second as it should. It plays perfectly. I also have the software "Malwarebytes" installed which also has real time protection but it doesn't cause any performance problems on FP.

Warlock with real time protection on Windows 10 Defender turned off

I'm not currently have trouble with the frame rate on AstroHits although its performance doesn't look great on Rafal's new chart.

It is nice to be able to play Warlock although I don't really want to turn off Defender's real time protection. Is there a difference in the Windows 10 version of Defender and Windows 7? It is odd that Warlock plays fine on Win 7 but not Win 10.


Page 1 of 2 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group