[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gzz] Third, PEG cursors--humppake: Changing mouse cursor
From: |
Tuomas Lukka |
Subject: |
Re: [Gzz] Third, PEG cursors--humppake: Changing mouse cursor |
Date: |
Sat, 10 May 2003 11:42:44 +0300 |
User-agent: |
Mutt/1.4.1i |
On Fri, May 09, 2003 at 08:18:47PM +0300, Matti Katila wrote:
> On Fri, 9 May 2003, Asko Soukka wrote:
> > AFAIK, comparing strings isn't cheap either.
>
> Heh, look at callgl code. We do that all the time and you shouldn't
> care that much about it :) Still strings are much nicer than constants,
> imho.
Umm, there's an important point here.
Yes, comparing strings in the INNERMOST LOOP is too expensive.
If you look through the code, you'll see that strings are never compared
in the rendering loop.
However, when *constructing* the vobs, especially ones that may be cached,
using callgl and strings is quite satisfactory.
For cursors, the same applies: they're not the innermost loop: we don't
need to do it 1000 times for each frame. We need to do it once.
So it's quite ok to compare strings.
Tuomas
- Re: [Gzz] Third, PEG cursors--humppake: Changing mouse cursor, (continued)
- Re: [Gzz] Third, PEG cursors--humppake: Changing mouse cursor, Matti Katila, 2003/05/09
- Re: [Gzz] Third, PEG cursors--humppake: Changing mouse cursor, Asko Soukka, 2003/05/09
- Re: [Gzz] Third, PEG cursors--humppake: Changing mouse cursor, Tuomas Lukka, 2003/05/10
- Re: [Gzz] Third, PEG cursors--humppake: Changing mouse cursor, Benja Fallenstein, 2003/05/10
- Re: [Gzz] Third, PEG cursors--humppake: Changing mouse cursor, Tuomas Lukka, 2003/05/10
- Re: [Gzz] Third, PEG cursors--humppake: Changing mouse cursor, Benja Fallenstein, 2003/05/10
- Re: [Gzz] Third, PEG cursors--humppake: Changing mouse cursor, Asko Soukka, 2003/05/12
- Re: [Gzz] Third, PEG cursors--humppake: Changing mouse cursor, Asko Soukka, 2003/05/12
- Re: [Gzz] Third, PEG cursors--humppake: Changing mouse cursor, Tuomas Lukka, 2003/05/12
- Re: [Gzz] Third, PEG cursors--humppake: Changing mouse cursor, Tuomas Lukka, 2003/05/12
- Re: [Gzz] Third, PEG cursors--humppake: Changing mouse cursor,
Tuomas Lukka <=
- Re: [Gzz] Third, PEG cursors--humppake: Changing mouse cursor, Tuomas Lukka, 2003/05/10