![]() |
|
Small Basic super slow ?? - Printable Version +- Small Basic Forum (https://litdev.uk/mybb) +-- Forum: Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=1) +--- Forum: Standard Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=2) +--- Thread: Small Basic super slow ?? (/showthread.php?tid=385) |
RE: Small Basic super slow ?? - AbsoluteBeginner - 06-10-2025 LitDev, Thank you very much for the instructive example.
RE: Small Basic super slow ?? - sm4llprogrammer2008 - 06-10-2025 Google made wwwBASIC (for Node.js and web) but syntax is Dartmouth BASIC-like, which makes it confusing. RE: Small Basic super slow ?? - Elzaimer - 06-10-2025 I had thought about this optimization, but I figured it would flicker more, and it does. We should create the image of the next frame without displaying it, and then replace the image of the current frame with this new image... That way, the display wouldn't be showed during the tests. It would be prettier because it would be instantaneous. Is this feasible? I'm not sure I'am clear
RE: Small Basic super slow ?? - litdev - 06-10-2025 You are clear - since we are looking for speed, in the last example I gave (DKJX394.000-0) I use the extension command to Pause graphical updates (LDGraphicsWindow.PauseUpdates and LDGraphicsWindow.ResumeUpdates) while the drawing is being done - this significantly reduces flicker as it only updates the visual GW after all the changes have been made. Its not perfect, but with SB we are crafting 'the best we can!" which for me as I said is half the fun. Also I changed the logic so we do the life calculations only considering the alive cells, not wasting so much time on the dead regions - combined these are optimisations give reasonable performance, not compared to native C++ code for example, but good for SB. RE: Small Basic super slow ?? - Elzaimer - 06-10-2025 I started to study your DKJX394.000-0 version which is amazingly fast ! ? But at this time I don't understand everything. I keep trying to understand ! Thanks a lot for all your help RE: Small Basic super slow ?? - AbsoluteBeginner - 09-11-2025 Hi all. Tell me please, do you know of any changes to the rules of the game "Life" that would create new incredible effects? Perhaps this is no longer related to the birth/death of a cell. Perhaps this is the emergence of some kind of "computational structure" in a homogeneous environment. It is even possible that some kind of "neural network" could develop that receives input from the leftmost column of cells and produces output in the cells of the rightmost column. It would be interesting to try. RE: Small Basic super slow ?? - AbsoluteBeginner - 09-13-2025 I have an interesting option if I turn the cell into a universal logical element. ![]() Depending on the code assigned to a cell, the cell can operate as an AND, OR, or NOT logic element. In addition, the cell can operate in the mode of a simple signal conductor, without processing it. The cell mode code determines the state of the cell sides. Each cell face can operate in "input", "output" or "off" mode. Thus, in a homogeneous environment consisting of cells with such properties, we can create any logical circuits. This scheme can be changed by simply changing the operating mode code of each cell. Therefore, such a circuit can improve itself if a program for controlling the operating mode of the cells is added to it. RE: Small Basic super slow ?? - sm4llprogrammer2008 - 09-14-2025 (06-08-2025, 08:15 AM)AbsoluteBeginner Wrote:(06-07-2025, 07:32 PM)Elzaimer Wrote: ... Don't worry, I'm making an application that is very similar to Flash and it can program stuff with Small Basic, it's made in JavaScript, which could make it blazingly fast (I became a JavaScript mastermind by the way so I'm backing Small Basic with this) |