|
Post by plus on Jan 30, 2023 18:09:57 GMT
Rod Thanks for directions for making an exe with JB though the bas file is not compiled but converted to tkn file I wondered what happened to it when exe is made. So I got it wrong the tkn file is not copied into the exe but remains an crucial file in the project, that could be done too probably but ehhh. So the exe wont work without the .tkn file it doesn't get appended to exe like in another Basic. So OK making is not the same as compiling, I stand corrected, I guess. Anyway Rod thankyou for the instructions in your post above I lost my stuff with hard drive over summer. I tested with one of many JB favorite's and appears the "exe.bas" code did not get deleted for some reason but no a biggy really. Too bad this forum cant take zip files over 1MB or you'd be seeing it.
|
|
|
Post by Rod on Jan 30, 2023 18:37:13 GMT
Finally! The reason for B+’s frustration, Just BASIC cannot be made to run ten times faster than normal.
I believe his frustration is based on graphic performance not basic computation.
Why is Just BASIC slower than some others graphically? Well Windows is not an 8 bit computer that has direct control over its screen output. In fact nothing has direct control over a Windows screen.
Just BASIC uses a Windows meta data rendering system (ask Carl) this allows lots of cool stuff like segments.
No software that runs on Windows has direct control of the display, Windows controls the display. There is no screen refresh, update trigger. We just draw our graphics and wait for Windows to decide to display it.
That’s why we can get flashing, the flashing that annoys B+ so much because it is confusing why it happens or how to get rid of it.
It happens because Windows decides to redraw our screen half way through our redrawing code. If we could complete the redraw and then force a screen refresh, life would be great but we can’t. Windows steps in randomly and redraws whatever we have managed to draw.
That’s the system, understanding the system is the first step to mitigating it.
Just BASIC is actually capable of drawing oodles of graphics between screen refreshes. The trick is to redraw as quick as possible. There are a variety of techniques, xor, redraw bac, sprites and in Liberty the blitter. Using the blitter Liberty is capable of drawing thousands of screens between refreshes. So many that you would never see o e tenth of them on screen when Windows does its 60ms update.
So Just BASIC runs at a finite speed that is actually SUPERFAST the display needs a bit of thinking through because it runs at a Windows dictated ~60ms that’s the understanding challenge.
Exe? Absolutely nothing to do with the frustration.
|
|
|
Post by cundo on Feb 10, 2023 20:16:54 GMT
Anyone familiar on making an exe file?.. Yes! it's very easy to do an stand alone EXE. From the help file
|
|