[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] some samples and a question about looping
- To: email@example.com
- Subject: Re: [Public WebGL] some samples and a question about looping
- From: Sami Mäkelä <firstname.lastname@example.org>
- Date: Thu, 6 Jan 2011 18:15:02 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=bccwC+LFCtRoFL1d/UwRm+Q8w77kEAuWp9c0xUGetm8=; b=XIhIRfdnb4ioNNEdUuGhhWN6g6kJnhJDufybwljp2uzbtPS7W4KgNrk1ZSkKZ319T/ DQGhHQQfSXy0IDZh+qaqm7V1IfX/s7/Ejeq6gMflsq8QFKH6x4WDnO8Lje/LAb9KG1SV ZHio5Qp2xW6x+M62FmgsHqj2cTk4PuRflUKw8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=TYykAJ/Z0KGDx8ZpS9eFDAr1IXp+kf+erDPBUXtVJzlLRexEQWcCT2Z5K9wULltMaK 8q2OysSljJ1iiswYvZW8I18EFL0IksM4xEZm8f3JzedeanJGfDs5lTlDRtGS/EpdQoKf gwgIj5JojpSnIRlmn16Ewbly97bjcNp9O0sGg=
- In-reply-to: <4D2560D0.email@example.com>
- List-id: Public WebGL Mailing List <public_webgl.khronos.org>
- References: <AANLkTi=hd-eWqRT_PYLzwNXX0Hg_ebdVDONkP=jxiMd7@mail.gmail.com> <4D15F103.firstname.lastname@example.org> <AANLkTi=ZJqFYwHyCWSHU0aPv1DSc3gx5sojp2HZprTkh@mail.gmail.com> <4D180536.email@example.com> <AANLkTik17hHUMiwpw4rh+ZguDWpe2UJXeLAGfirstname.lastname@example.org> <4D1A4D39.email@example.com> <AANLkTinjNXQh0k__6UkEp+QwwnAdfccGp2ssoynTfirstname.lastname@example.org> <4D23D753.email@example.com> <9E85EB37BE49424480E1829239B6C9C511095E@008-AM1MPN1-015.mgdnok.nokia.com> <4D25294A.firstname.lastname@example.org> <AANLkTi=qZFUZaNJXCxDgf-BWA5RbC+Fs1rD9K5P8rraa@mail.gmail.com> <4D2560D0.email@example.com>
- Sender: firstname.lastname@example.org
Rumor on the net says that PowerVR SGX and Tegra 2 have branching,
Adreno does not have it. Also phone vendors have restricted drivers so
they can change their GPU manufacturers easily (I don't know if they
restrict looping). Whether or not the GPUs have branching has little
impact on their overall performance.
Somehow people seem to be missing two things here. First, this
restriction is not coming by the OpenGL ES spec. It is merely the
minimum requirement for the implementations there. By disallowing
arbitrary loops, WebGL is diverting from the OpenGL ES spec, so there
should be some good reason for doing that.
Second, the restriction is entirely syntactic, because when hardware
branching is available, also loops in the restricted form can be
compiled without unrolling. Then "if" and "break" can be used to make
variable length loops. The constant bound will have to be set so high
that it is never reached. This bound can be easily selected so high
that it won't be accepted by drivers that try to unroll loops (or
worse, the drivers try to unroll it and the system runs out of
resources). Unless the bound is small (perhaps 30?), and the loop body
is simple, this form will be less portable than the natural form. With
longer loops, drivers can try (and fail) to unroll, even if the
hardware supports branching. As summary, the distinction between
hardware with and without branching still exists with restricted loops
and can be exploited in the same way as it could with arbitrary loops.
On Thu, Jan 6, 2011 at 8:27 AM, Mark Callow <email@example.com> wrote:
> On 06/01/2011 14:23, David Sheets wrote:
> Hi Mark,
> I understand the desire to protect graphics vendors' interests by
> making hardware limitation inquiries anonymous. Could you tell us
> anything about the nature of these shader-limited GPUs? Are they
> currently being manufactured? Are they 2 years old? 5 years? Desktop?
> I really do not know. The discussion took place what feels like a year ago.
> It might have been a less or a bit more. Many designs had been in the market
> for a year or more before that. I have no idea if hardware makers are
> tweaking their GPU designs over time.
> If these GPUs are deployed in devices with sub-1GHz CPUs, I have a
> hard time believing that these devices will ever run WebGL content
> I do not recall seeing any device with an OpenGL ES 2.0 capable chip and a
> less than 1GHz CPU.
> When WebGL starts to take off in a year or two, how old will these
> minimally ES2 GPUs be? Will the owners of these devices expect WebGL
> to work on a 5 year old cell phone?
> I have no idea what the owners might expect.
> Regarding the future, I refer you to Ken Russell's answer on this thread. It
> is much easier to relax restrictions than add them.
You are currently subscribed to firstname.lastname@example.org.
To unsubscribe, send an email to email@example.com with
the following command in the body of your email: