Post Reply 
Varying speed of a program.
05-21-2022, 05:01 PM (This post was last modified: 05-21-2022 11:45 PM by matalog.)
Post: #3
RE: Varying speed of a program.
Running this program 4 times, I get 4 different runtimes, increasing from time of startup. 187,288, 190,297 and 199,373 200,310.


Code:
EXPORT SPTEST()
BEGIN
DIMGROB_P(G1,320,240);
DIMGROB_P(G2,320,240);
LOCAL T1:=TICKS;LOCAL T2:=0;LOCAL T:=-1;
RECT();
    FOR X FROM 0 TO 5000000 DO
     IF X MOD 50000=0 THEN
       T:=T+1;
       RECT_P(G2,0,0,320,240);
       TEXTOUT_P(STRING(T)+"%",G2,0,0,7);
       FOR H FROM 0 TO 30 DO
          FOR W FROM 0 TO 50 DO
             FOR A FROM 0 TO 3 DO
               FOR B FROM 0 TO 3 DO
                   PIXON_P(G1,80+W*4+B,50+H*4+A,GETPIX_P(G2,W,H));
               END;
             END;
          END;
       END;
           RECT_P(G0);
           BLIT_P(G0,0,0,320,240,G1,0,0,320,240);
     END;
    END;
T2:=TICKS;
PRINT(T2-T1);
END;

Are you saying that this is a known problem, and someone is looking into it?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Varying speed of a program. - matalog - 05-21-2022, 09:46 AM
RE: Varying speed of a program. - albud44 - 05-21-2022, 10:02 AM
RE: Varying speed of a program. - Gene - 05-21-2022, 10:09 PM
RE: Varying speed of a program. - matalog - 05-21-2022 05:01 PM
RE: Varying speed of a program. - matalog - 05-21-2022, 11:47 PM
RE: Varying speed of a program. - anyfoo - 05-22-2022, 01:34 AM
RE: Varying speed of a program. - matalog - 05-24-2022, 08:43 PM



User(s) browsing this thread: 1 Guest(s)