Recent

Author Topic: fps are so different (Delphi vs. Lazarus)  (Read 6334 times)

todhuk

  • New Member
  • *
  • Posts: 15
fps are so different (Delphi vs. Lazarus)
« on: August 28, 2017, 10:08:01 pm »
I compiled the Multi Proxy Sample of Delphi and Lazarus.
I found a great difference in fps calculation.

Multi Proxy Sample
Compiled with Delphi 10.2 : around 1600 fps
Compiled with Lazarus 1.8RC1 : around 75 fps
Why fps are so different?

System: Windows 10 64 bits; Video: NVIDIA Quadro 2000;
CPU: QuadCore Intel Xeon W3550, 3200 MHz; RAM: 32 GB
GLScene vertion 1.5.0


Xor-el

  • Sr. Member
  • ****
  • Posts: 404
Re: fps are so different (Delphi vs. Lazarus)
« Reply #1 on: August 28, 2017, 10:29:26 pm »
what optimization level did you use for FPC?
Is it a code you can share?

Akira1364

  • Hero Member
  • *****
  • Posts: 561
Re: fps are so different (Delphi vs. Lazarus)
« Reply #2 on: August 28, 2017, 11:20:12 pm »
Looks like VSync is turned on in the Lazarus version, but turned off in the Delphi one. Is your monitors refresh rate 75hz? Check the value of GLSceneViewer.VSync in both versions.

BeanzMaster

  • Sr. Member
  • ****
  • Posts: 268
Re: fps are so different (Delphi vs. Lazarus)
« Reply #3 on: August 28, 2017, 11:36:46 pm »
Well seen, Akira I forgot to specify this detail on the forum of GLScene.  :D

todhuk

  • New Member
  • *
  • Posts: 15
Re: fps are so different (Delphi vs. Lazarus)
« Reply #4 on: August 29, 2017, 12:41:45 am »
I did optimization as BeanzMaster said (in GLScene forum) and got 500 fps (with Lazarus/Typhon).
« Last Edit: August 29, 2017, 12:43:23 am by todhuk »

 

TinyPortal © 2005-2018