[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] Spec change request.
- To: Steve Baker <steve@sjbaker.org>
- Subject: Re: [Public WebGL] Spec change request.
- From: Cedric Vivier <cedricv@neonux.com>
- Date: Sun, 5 Dec 2010 22:28:53 +0800
- Cc: public webgl <public_webgl@khronos.org>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=nwTnNH0JOjrm4/FUHGOtpnMxGPoPRwp1IgghGlup+d0=; b=xE1sFPhnlvvGkgmQS3r7u3CcJS1UqHYLXzl1OeqRbTRJKbo9J+SmsGlDiVrYV+iQX9 ll2ePangTRHpsEG1L7GsNKO3ZzV+NSNsL1ehI5ts7NhKKx4TiXdhhGAWVM8tTAUTTynW trRKx9xMc12Lt0hlTggzLW44wfFAExGJke9J8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=NVS779h8eUI9sINyqFUe+TGZijMSfG/usqc+x1iUOo8FnwsrHtU5dIVr70KTV4wAhV +qVoMoqh/VR2t4zNMk0hRGlQNh+lIVgcqWFzktZL9M82Yj9uOcMk4dJ40pHOHJVZk1GG NKG9LJj+XjCs4BBVe3tvKLsvFT+EBsIp+J57o=
- In-reply-to: <4CFB0851.9020002@sjbaker.org>
- List-id: Public WebGL Mailing List <public_webgl.khronos.org>
- References: <4CFB0851.9020002@sjbaker.org>
- Sender: owner-public_webgl@khronos.org
On Sun, Dec 5, 2010 at 11:34, Steve Baker <steve@sjbaker.org> wrote:
> When I benchmark my rendering code - I find that an unreasonable
> percentage of the time is spent doing this:
>
> if ( someUniformLocation != null )
> <==== THIS!
> gl.uniformXXX ( someUniformLocation, XXX ) ;
>
There should not be any performance issue with modern JS engines here
except if `someUniformLocation' is in the global scope and or few
scopes above and/or hard to guess statically.
Try extracting this into a method taking a "uniformLocation" argument,
the `if' runtime will most likely become insignificant.
Regards,
-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email: