TUI lag

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
System123
Member
Member
Posts: 196
Joined: Mon Jul 07, 2008 1:25 am

Re: TUI lag

Post by System123 »

Thanks again Brendan for your helpful reply I will work through the code and see what I can do
Gizmic OS
Currently - Busy with FAT12 driver and VFS
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: TUI lag

Post 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?
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: TUI lag

Post 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
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: TUI lag

Post 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 ;)
System123
Member
Member
Posts: 196
Joined: Mon Jul 07, 2008 1:25 am

Re: TUI lag

Post 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.
Gizmic OS
Currently - Busy with FAT12 driver and VFS
Post Reply