How to get FPS games (with OpenGL) like 800 FPS

How can we run OpenGL applications (for example, games) with a higher frame rate, for example 500 - 800 FPS?

For example, AOE 2 works with more than 700 FPS (I know that this applies to DirectX). Although I just clear the buffers and swap buffers in the game loop, I can only get about 200 (max.) FPS. I know that FPS is not a good mess (and also depends on hardware), but I feel like I missed some concepts in OpenGL. I? Can anyone give me a hint?

+3
source share
4 answers

5.600 FPS (GeForce 260 GTX, 1920x1080). glClear 4.000 FPS, 200... ( AoE2) 100-200 FPS (GeForce 8 ). , , .

, , 200 FPS , - , (? swapbuffer 5 , . , , ( gl * )

- OpenGL (, ..), , GL_EXT_timer_query.

:

  • (glBegin/glEnd), VBO / +
  • (opengl )
  • , .
+3

AOE 2 - DirectDraw, Direct3D. OpenGL DirectDraw.

, . Direct3D , . - , , .

+2

, , , ( /, , ) , , .

, , .., , , , ( ). , , - , , , , ( ), .

, , , , .

0

, . . , , 128x128, 16 512x512, , , 16 .

0

Source: https://habr.com/ru/post/1713573/


All Articles