Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Printing an updated screenful in one go
#3
(01-12-2021, 09:43 PM)worcestersource Wrote: I've been experimenting this evening.

Curiously, making a big string full of control codes crashed when it got to so many lines. PRINTing it was also quite slow.

So, I've had a look at putchars() and paint() - thanks Britlion. I set up a pair of arrays and loop through this, putting a character to the screen, then its attribute, one at a time. This is much improved in terms of performance.

I think I'm starting to get somewhere. The array is probably a bit wasteful of memory, so I'm thinking I could construct the starting point to the screen, using putChars() and paint(), scroll it and fill in the gaps with putchars() and paint().

Sorry for rambling publicly!

Steve

Sorry, I've been busy fixing another bug.
What version are you using?

I've recently fixed some bugs in PRINT routine control codes in version 1.14.0
If you're not up to date, please download it.
Reply


Messages In This Thread
RE: Printing an updated screenful in one go - by boriel - 01-14-2021, 09:00 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)