We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Small Basic super slow ??
#24
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.
[-] The following 1 user Likes litdev's post:
  • stevantosic
Reply


Messages In This Thread
Small Basic super slow ?? - by Elzaimer - 06-04-2025, 08:39 PM
RE: Small Basic super slow ?? - by martmen - 06-05-2025, 12:46 AM
RE: Small Basic super slow ?? - by litdev - 06-05-2025, 03:38 PM
RE: Small Basic super slow ?? - by Elzaimer - 06-05-2025, 05:44 PM
RE: Small Basic super slow ?? - by litdev - 06-05-2025, 07:04 PM
RE: Small Basic super slow ?? - by z-s - 06-06-2025, 03:14 AM
RE: Small Basic super slow ?? - by litdev - 06-07-2025, 03:05 PM
RE: Small Basic super slow ?? - by litdev - 06-07-2025, 03:48 PM
RE: Small Basic super slow ?? - by Elzaimer - 06-07-2025, 07:32 PM
RE: Small Basic super slow ?? - by litdev - 06-08-2025, 07:31 AM
RE: Small Basic super slow ?? - by litdev - 06-08-2025, 10:35 AM
RE: Small Basic super slow ?? - by z-s - 06-08-2025, 02:42 PM
RE: Small Basic super slow ?? - by litdev - 06-08-2025, 03:29 PM
RE: Small Basic super slow ?? - by litdev - 06-08-2025, 04:04 PM
RE: Small Basic super slow ?? - by Elzaimer - 06-08-2025, 08:21 PM
RE: Small Basic super slow ?? - by litdev - 06-09-2025, 08:45 AM
RE: Small Basic super slow ?? - by Elzaimer - 06-10-2025, 04:33 PM
RE: Small Basic super slow ?? - by litdev - 06-10-2025, 05:10 PM
RE: Small Basic super slow ?? - by Elzaimer - 06-10-2025, 07:21 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)