realbasic-games
[Top] [All Lists]

Re: trimesh particles demo, version 2

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: trimesh particles demo, version 2
From: Jeff Quan <jquan at mindspring dot com>
Date: Thu, 5 Oct 2006 22:14:29 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-games at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=mindspring.com; b=JgOsbhNQxpd7oqks4rlmty9rkcCwUlJpkrnX1tye2mP86o0NP6Grfsc9AmlwPA8M; h=Received:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:From:Subject:Date:To:X-Mailer:X-ELNK-Trace:X-Originating-IP;
References: <33cbfa100610051952g4c29b16ep1b8b520e7d03d8c1 at mail dot gmail dot com>
On Oct 5, 2006, at 7:52 PM, Lars Jensen wrote:
Question: would it substantially improve performance if each particle
were only one triangle instead of two?

(I'm not sure how UVs work yet so I didn't try this myself.)

While it's true that one triangle is faster to update than two, if you did just use triangles, then in order to fit an image onto that triangle, the triangle would have to be VERY large. Having large triangles that are mostly transparent will present you with another performance bottleneck -- the drawing of transparent objects in front of others. Plus it'd be a bear to try and center the image in a single triangle as it's spinning.

An example: in my earlier tests with the trimesh particles, I could launch about three times as many if the particles were opaque (ie: non-alpha masked) over transparent. More concretely, I have a test where I had 2400 opaque particles on-screen with nary a hiccup in performance.

==
Jeff Quan
jquan at mindspring dot com
http://www.jcquan.com/JQportfolio


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>