|
Post by aurel on Feb 6, 2024 6:30:29 GMT -6
I cannot run this program.. .i need to download latest release i guess
|
|
|
Post by aurel on Feb 6, 2024 6:48:13 GMT -6
nOOb what a heck ..going on with RCB ?
I download rcbasic_win_321 which is latest version on itch.io there is no 3.22 presented there .
I unpack and navigate to folder as usual rcbasic_release\ rcbasic and found there 3 files with rc icon ..so i try to run them ...no one of them respond
rcbasic.exe rcbasic_studio_run.exe rcbasic_win.exe
why is that ? did i miss something ?
|
|
|
Post by aurel on Feb 6, 2024 7:22:38 GMT -6
I really don't know why not work or stuck.. after 4 min ,program simply do nor show anything just start result what is that ? I must say that this version RCB 3.21 work with my AurelEditRCB look on screenshot:
|
|
|
Post by aurel on Feb 6, 2024 11:18:46 GMT -6
post on forum removed
|
|
|
Post by n00b on Feb 6, 2024 11:31:19 GMT -6
nOOb what a heck ..going on with RCB ? I download rcbasic_win_321 which is latest version on itch.io there is no 3.22 presented there . I unpack and navigate to folder as usual rcbasic_release\ rcbasic and found there 3 files with rc icon ..so i try to run them ...no one of them respond rcbasic.exe rcbasic_studio_run.exe rcbasic_win.exewhy is that ? did i miss something ? When you extract the zip, you just need to run rcbasic_studio in the main folder:
|
|
|
Post by n00b on Feb 6, 2024 11:37:37 GMT -6
I made a minor change to the code above. I was calling update() way too much and it slowed it down alot. I attached the updated web build. Make sure you get the sequence: 200574 60372774 120544974 180717174 240889374 301061574 309886830 Otherwise, it isn't a valid benchmark. I wasn't sure what the output should be. I will try to run it again when I get home and check the output.
|
|
|
Post by aurel on Feb 6, 2024 14:13:18 GMT -6
hi nOOb i find it ...ahh i forget rcbasic_studio need project hmmm .ok but i need to wait 10 seconds to studio app open
|
|
|
Post by rosy on Feb 8, 2024 7:02:22 GMT -6
I meant the graphics test, pictures...
|
|
|
Post by rosy on Feb 21, 2024 3:54:56 GMT -6
#include "BasicWWW.h" SDL_Texture tex=[]; int i,n=10000; int st; MAIN SDLOpen(0) LoadImg(tex[0],"resources/star.jpg") LoadImg(tex[1],"resources/leaves.jpg") LoadImg(tex[2],"resources/keyboard.jpg") Function draw() Def For(i,0,n) PutImg(tex[0],Random(640),Random(400)) PutImgScale(tex[1],Random(640),Random(400),Rnd*0.25+0.25,Rnd*0.25+0.25) PutImgRotoFlip(tex[2],Random(640),Random(400),i+st,0) Next GPrAt(300,200,SDLTime-st) st=SDLTime; requestAnimationFrame(draw); EndFunc draw(); ENDMAIN The draw function works in a regular loop and its execution time is shown. Screen 640x400. Pictures from here: webgl2fundamentals.org/webgl/lessons/webgl-2d-drawimage.html
|
|
|
Post by rosy on Feb 21, 2024 8:04:25 GMT -6
But what the heck... In regular BasicC 800 ms, in WWW 500 ms... This is how you do graphic functions...
|
|
|
Post by rosy on Feb 22, 2024 17:37:04 GMT -6
RC:
i=0
n=10000
st=0
WindowOpen(0, "www", WINDOWPOS_CENTERED, WINDOWPOS_CENTERED, 640, 400, 0, 1)
CanvasOpen(0, 640, 400, 0, 0, 640, 400, 1)
LoadImage(0,"star.jpg")
LoadImage(1,"leaves.jpg")
LoadImage(2,"keyboard.jpg")
Sub draw()
Do
For i=0 to n
DrawImage(0,Rand(640),Rand(400))
DrawImage_Zoom(1,Rand(640),Rand(400),Rand(25)*0.01+0.25,Rand(25)*0.01+0.25)
DrawImage_Rotate(2,Rand(640),Rand(400),i+st)
Next
'DrawText(STR$(Timer-st),300,200)
Update
Print Timer-st
st=Timer()
Loop
End Sub
draw() RC, RC www and Basic C: approx. 800 ms. BasicC www is the fastest - 500 ms
|
|