Page 2 of 2

Re: TUI lag

Posted: Thu Sep 04, 2008 8:40 am
by System123
Thanks again Brendan for your helpful reply I will work through the code and see what I can do

Re: TUI lag

Posted: Sat Sep 06, 2008 4:43 am
by JamesM
salil_bhagurkar wrote:Wtf? I had once set the PIT to 10000 Hz and even my scheduler worked fine. There was no question of lag in the screen display.
That's interesting. You set the PIT to 10MHz, when its internal decrementer runs at 1.19MHz. That's quite impressive - how did you manage that?

Re: TUI lag

Posted: Sat Sep 06, 2008 5:50 am
by Brendan
Hi,
JamesM wrote:
salil_bhagurkar wrote:Wtf? I had once set the PIT to 10000 Hz and even my scheduler worked fine. There was no question of lag in the screen display.
That's interesting. You set the PIT to 10MHz, when its internal decrementer runs at 1.19MHz. That's quite impressive - how did you manage that?
Um, 10000 Hz is 10 KHz, or 0.01 MHz... ;)

I'm guessing the PIT's count was set to about 119.


Cheers,

Brendan

Re: TUI lag

Posted: Sat Sep 06, 2008 7:03 am
by JamesM
Brendan wrote:Hi,
JamesM wrote:
salil_bhagurkar wrote:Wtf? I had once set the PIT to 10000 Hz and even my scheduler worked fine. There was no question of lag in the screen display.
That's interesting. You set the PIT to 10MHz, when its internal decrementer runs at 1.19MHz. That's quite impressive - how did you manage that?
Um, 10000 Hz is 10 KHz, or 0.01 MHz... ;)

I'm guessing the PIT's count was set to about 119.


Cheers,

Brendan
Hahaha! woops! Thanks for the correction Brendan ;)

Re: TUI lag

Posted: Sat Sep 06, 2008 9:16 pm
by System123
Ok i worked through the code and debugged it.. It works fine now except that the screen is split into to columns, i think that the scroll doesnt move the text a full line up. Only half a line. With regard to creating a video buffer in RAM would i just allocate some memory after my kernel and then write to this as normal? I have created a copy algorithm that works fine.