Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Printing an updated screenful in one go
#2
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
Reply


Messages In This Thread
RE: Printing an updated screenful in one go - by worcestersource - 01-12-2021, 09:43 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)