[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] Multiple viewports/contexts
Thanks Chris,
Using mulitple viewports is certainly how I would have done it in a
desktop app - I was just checking in case there was some issue with
webgl that I wasn't aware of.
Regards
Alan
On 09/07/2010 10:12 AM, Chris Marrin wrote:
On Sep 7, 2010, at 9:57 AM, Vladimir Vukicevic wrote:
Multiple viewports in the same context is almost certainly the best option. Multiple contexts will involve memory/resource usage that's a direct multiple of the number of contexts you have, becuase you can't share any GL resources across different WebGL contexts.
I agree. Not only is there the resource issue, but many OpenGL implementations incur a large cost for switching contexts, so the multiple context approach would probably be slower as well.
-----
~Chris
cmarrin@apple.com
-----------------------------------------------------------
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: