Re: [SLOF] [SLOF PATCH 2/2] fbuffer: Use a smaller cursor

2015-07-28 Thread Thomas Huth
On 29/07/15 05:42, Segher Boessenkool wrote: > On Wed, Jul 29, 2015 at 01:05:48PM +1000, Alexey Kardashevskiy wrote: >>> : fb8-toggle-cursor ( -- ) >>> line# fb8-line2addr column# fb8-columns2bytes + >>> - char-height 0 ?DO >>> + char-height 3 - screen-width screen-depth * * + >>> + 3 0

Re: [SLOF] [SLOF PATCH 2/2] fbuffer: Use a smaller cursor

2015-07-28 Thread Segher Boessenkool
On Wed, Jul 29, 2015 at 01:05:48PM +1000, Alexey Kardashevskiy wrote: > > : fb8-toggle-cursor ( -- ) > > line# fb8-line2addr column# fb8-columns2bytes + > >-char-height 0 ?DO > >+char-height 3 - screen-width screen-depth * * + > >+3 0 ?DO > > Why not just: > > - char-height 0

Re: [SLOF PATCH 2/2] fbuffer: Use a smaller cursor

2015-07-28 Thread Alexey Kardashevskiy
On 07/28/2015 08:19 PM, Thomas Huth wrote: Drawing the cursor in the frame buffer memory is a very, very slow operation. So let's simply switch to a "underscore" cursor instead of the full block cursor to save some precious cycles. Signed-off-by: Thomas Huth --- slof/fs/fbuffer.fs | 3 ++- 1

[SLOF PATCH 2/2] fbuffer: Use a smaller cursor

2015-07-28 Thread Thomas Huth
Drawing the cursor in the frame buffer memory is a very, very slow operation. So let's simply switch to a "underscore" cursor instead of the full block cursor to save some precious cycles. Signed-off-by: Thomas Huth --- slof/fs/fbuffer.fs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)