Search:

Type: Posts; User: Petr Schreiber; Keyword(s):

Search: Search took 0.03 seconds.

  1. Replies
    16
    Views
    14,172

    Re: Arkanoid: "Sleep 10" to reduce CPU usage

    Hi Eros,

    I tried to use it like:


    while tbgl_IsWindow(hWnd)
    doevents
    ...
    wend
  2. Replies
    16
    Views
    14,172

    Re: Arkanoid: "Sleep 10" to reduce CPU usage

    I thought those tests are 100% equivalent,

    good to know that they are not!
    I have to go offline now or I will become zombie, but tommorow I will do some benchmarks ... very interesting.


    Petr
  3. Replies
    16
    Views
    14,172

    Re: Arkanoid: "Sleep 10" to reduce CPU usage

    Incredible :D,


    how did you found that ... I have no idea :)
    But fact is that it works!


    Perfect,
    Petr
  4. Replies
    16
    Views
    14,172

    Re: Arkanoid: "Sleep 10" to reduce CPU usage

    Mostly 0%,

    so perfect!
    The "worst" was about 2% :)


    Petr
  5. Replies
    16
    Views
    14,172

    Re: Arkanoid: "Sleep 10" to reduce CPU usage

    How did you do that ;D

    Seems to work ok! In some TBGL scripts it seems the FPS is suddenly limited to very stable 64 FPS or so, but in others ( TopDown, tbglBenchmark ) I get the same as before,...
  6. Replies
    16
    Views
    14,172

    Re: Arkanoid: "Sleep 10" to reduce CPU usage

    I tried to use UI:


    And this way I get from 45 to 55%


    Thanks,
    Petr
  7. Replies
    16
    Views
    14,172

    Re: Arkanoid: "Sleep 10" to reduce CPU usage

    Hi Eros,

    FUNCTION = %TRUE

    Petr
  8. Replies
    16
    Views
    14,172

    Re: Arkanoid: "Sleep 10" to reduce CPU usage

    Hi Eros,

    the window is created old good Petzold way, so pure Win32 window with callback WndProc.
    It is executed approximately various number of times in second on my PC, but it does almost...
Results 1 to 8 of 8