|
Post by kennn on Apr 3, 2022 1:58:53 GMT -6
|
|
|
Post by rosy on Apr 3, 2022 2:54:08 GMT -6
I have presented ideas here many times ... If sprites, let them just draw sprites of different sizes ... Only for windows of different sizes ...
|
|
|
Post by johnno56 on Apr 3, 2022 3:44:20 GMT -6
kennn, set the way-back machine to the late 70's to mid 80's....
Here are some samples of machine speed tests... Be mindful... These were written in Basic for Basic machines... Oh, these are SO old... Those old machines used cpu's ranging from about 1 to 3mhz...
Running these simple tests on those old machines would give people an idea as to how a machine might perform. I would probably not recommend that you try these on today's machines... much too fast... Check out the results of the old machines... lol
But there are benchmark applications out there that will do all kinds of tests... Some free...Some will cost...
I am not sure that this helps.
J
|
|
|
Post by kennn on Apr 4, 2022 10:06:01 GMT -6
Ok...thanks.
|
|
|
Post by johnno56 on Apr 4, 2022 14:47:52 GMT -6
Ha. I actually went against my own advice and tried some of those old benchmark tests... I put a start and finish timer into each test. I got up to test #6 of 8 and all 6 indicated zero seconds... Not surprised. After all, those old machines only had to count up to 1,000. I had to modify the tests to count to at least a million before they would register any results... lol
|
|
|
Post by rosy on Apr 4, 2022 16:33:52 GMT -6
I have already said that it is a waste of time for these tests ...
|
|
|
Post by johnno56 on Apr 4, 2022 16:48:13 GMT -6
True... But it was fun!
|
|
|
Post by kennn on Apr 5, 2022 3:05:01 GMT -6
Discussing is useless because no one is able to design a simple and effective benchmark test for comparing SDLBasic, RCBasic and NaaLaa.
|
|
|
Post by rosy on Apr 5, 2022 3:58:47 GMT -6
Because it is useless for someone who knows how to program.
|
|
|
Post by marcus on Apr 6, 2022 8:46:26 GMT -6
Discussing is useless because no one is able to design a simple and effective benchmark test for comparing SDLBasic, RCBasic and NaaLaa. Here's a simple tests. It loads two images, one opaque and one with transparency. The program renders the two images with and without colorization 100,000 times (400,000 blits in total) and then displays the resulting image and the time it took in ms. This is of course just the n7 version. set window "Blitting", 640, 480 set redraw off
' Load a completely opaque image. opaqueImage = loadimage("assets/opaque.png") ' Load an image that contains transparency. transparentImage = loadimage("assets/transparent.png")
' White color. white = [255, 255, 255] ' Transparent orange color. transparentOrange = [255, 128, 64, 128] ' Clear screen with a gray color. set color 100, 100, 100 cls ' Start time in ms. t = clock() for i = 1 to 100000 ' Draw both images without colorization. set color white draw image opaqueImage, 0, 0 draw image transparentImage, 100, 0 ' Draw both images with colorization. set color transparentOrange draw image opaqueImage, 0, 100 draw image transparentImage, 100, 100 next ' Display result. set color 255, 255, 255 set caret 0, 200 wln clock() - t + " ms" redraw while true wait 10 Attachments:blitting.zip (345.85 KB)
|
|
|
Post by aurel on Apr 6, 2022 10:41:56 GMT -6
Yo Marcus i tried ...cca 15sec
|
|
|
Post by rosy on Apr 6, 2022 11:05:56 GMT -6
I would say 13 ...
|
|
|
Post by marcus on Apr 6, 2022 12:26:36 GMT -6
Ok, I guess my laptop is less crappy than I thought. Here it takes ~4s, and a corresponding n6 version takes ~6s. I'll see if I can learn sdlbasic and rcbasic and write the same thing in those languages (but not today).
|
|
|
Post by johnno56 on Apr 6, 2022 13:41:05 GMT -6
Cool... My old clunker did it in 3.867 seconds...
Do I win a prize? (he asked knowingly that the response would be like a cold, still night with only the sound of a chirping field cricket...) *sigh*
|
|
|
Post by aurel on Apr 6, 2022 15:54:18 GMT -6
well i do net test is on win64 just on win32 but i will
|
|