|
|
2011-10-03
, 21:10
|
|
Posts: 355 |
Thanked: 598 times |
Joined on Sep 2009
@ Nizhny Novgorod, Russia
|
#142
|
Do you render text one character at a time or full line?

You could special case each orientation (no on-the-fly transformations) in each widget and pre-rotate textures
So, I threw it away, wrote general Matrix class to work with transformation matrix, and started to recall linear algebra course (with squeak and rasp). After all I wrote general affine transform support for my Canvas class which does matrix×point multiplications for each drawing op
Of course this is slower than a lot of switch'es, but I believe that these number multiplications is still lot faster than actual drawing. So I don't think that special-casing will increase performance dramatically, though it should be somewhat faster of course (or may be I just hate special-casing
).In normal orientation the buffer isn't rotated and would be faster than widget code that can do transformations, even if special cased, right?
|
|
2011-10-03
, 21:49
|
|
Posts: 875 |
Thanked: 916 times |
Joined on Sep 2010
|
#143
|
|
|
2011-10-04
, 03:23
|
|
Posts: 355 |
Thanked: 598 times |
Joined on Sep 2009
@ Nizhny Novgorod, Russia
|
#144
|
|
|
2011-10-06
, 18:38
|
|
Posts: 637 |
Thanked: 445 times |
Joined on Dec 2009
@ Kaliningrad, Russia
|
#145
|

|
|
2011-10-07
, 00:59
|
|
Posts: 875 |
Thanked: 916 times |
Joined on Sep 2010
|
#146
|
Sad, very sad we can't use blure... As you can see I've modified close button a bit
|
|
2011-10-07
, 21:32
|
|
Posts: 637 |
Thanked: 445 times |
Joined on Dec 2009
@ Kaliningrad, Russia
|
#147
|
|
|
2011-10-08
, 17:29
|
|
Posts: 637 |
Thanked: 445 times |
Joined on Dec 2009
@ Kaliningrad, Russia
|
#148
|

| The Following User Says Thank You to Kroll For This Useful Post: | ||
|
|
2011-10-08
, 18:13
|
|
|
Posts: 4,783 |
Thanked: 1,253 times |
Joined on Aug 2007
@ norway
|
#149
|
| The Following User Says Thank You to tso For This Useful Post: | ||
|
|
2011-10-08
, 18:21
|
|
Posts: 637 |
Thanked: 445 times |
Joined on Dec 2009
@ Kaliningrad, Russia
|
#150
|
not sure i am a fan of "delete from harddrive"

| The Following User Says Thank You to Kroll For This Useful Post: | ||
I think the rotation buffer would be faster and have cleaner code than individual widget transformation, unless you special case them. In normal orientation the buffer isn't rotated and would be faster than widget code that can do transformations, even if special cased, right?