Re: [xmoto-dev] SDL_gfx help |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/xmoto-dev Archives
]
- To: xmoto-dev@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [xmoto-dev] SDL_gfx help
- From: "Rasmus Neckelmann" <neckelmann@xxxxxxxxx>
- Date: Thu, 25 Jan 2007 17:25:21 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fNYMlZBasy4fcsdgHpaXmsj/7gwtH5n35tPOIGZJxrQOyFEf8RIaYyY4F7OtcI9DOLELD5UjGGjdQtKPoueEnoPUOnxM5nTHhoaGGS7fThMphT9X9gKMRdE06nASnzE7jJK+3+x5O6LwK4C2RRKMoRvYIGW2K1K9KX34PkZvx4A=
On 1/25/07, Kees Jongenburger <kees.jongenburger@xxxxxxxxx> wrote:
I will need to ad alpha handling. and perhaps add an improved version
for square rendering.
If you do a simple "if alpha is below 50% don't render, if not
render", then it shouldn't be slowed down that much. Real alpha
blending will slow it down A LOT. :S
The speed varies with the rendered size.but it is adequate om my machine
Well, if the innermost loop is written in assembly, it will be twice
as fast I think :)
But unfortunately also twice as unportable. (I don't know how assembly
works on gcc).
Telling the compiler to do max. optimizations also improves the speed
a lot. (at least with vc++).
--
Rasmus Neckelmann