Geschwindigkeitsvergleich DirectX - SFML: Komische Ergebnisse



  • Ich buddel das hier nochmal aus, Laurent hat was dazu geschrieben (der Thread verlnikt auf unseren Thread hier und jetzt umgekehrt):

    http://sfml-dev.org/forum/viewtopic.php?t=2496 schrieb:

    Hi.

    As long as the window is in its original size, everything is quite fine. But now imagine someone has a screen resolution of 1280 x 1024 and wants to play the game in a maximized window. On my new QuadCore PC the speed is still acceptable. But imagine a person with a PC of 700 MHz. On this PC the movement takes more than three seconds.

    First, I don't think that "imagine" is really meaningful when talking about performances, I'd prefer real numbers 🙂

    But ok, let's say that these "3 seconds" are the benchmark result. 3 seconds to perform 1280 moves gives approximately 2.3 ms per frame, right? 2.3 ms per frame is 430 frames per second. I don't see what's critical here.
    Did I miss something?

    Generally speaking, drawing one or two sprites is not a significant benchmark, because the results are polluted with the overhead of event / window handling. This is not significant when drawing a real scene because it happens once per frame regardless the number of sprites that you draw, but when you draw only one or two it becomes significant.

    And 2.3 ms per frame is not really signficant too. I'd suggest that:
    - you perform many tests (drawing strings, drawing sprites, drawing shapes, using rotations, alpha-blending, scale, ...)
    - you draw a huge number of things

    And after that, don't forget to test SFML 2 too, because it has better performances than SFML 1.6 🙂


Anmelden zum Antworten