Great question!
Can you expand on what you're looking for when you say "analyze what's
wrong with user machine"?
For failIfMajorPerformanceCaveat, the context creation failure message
ought to contain actionable info that you can pass to the user, though
slightly stripped down for privacy. If us browsers are falling short
of what you need there, we'd love to work with you to fix it!
--
I think that querying available gpu memory is really gated at the more
general web-platform standards level, where it's not (yet?) possible
to query available system memory. (On e.g. Android, this is the same
number!)
Unfortunately I think that is a bigger decision than WebGL can make
alone. If we can think of some strong reasoning and unmet use-cases, I
think WebGL would be happy to participate in that higher level
discussion.
You *can* probe if you know how much space you want to test for. You
can either make an allocation of that size (maybe a bufferData(size)?)
or slowly add e.g. 100MB at a time and measure allocation time to
check whether you start swapping too much. (yes, the gpu can swap!) As
a warning we have definitely seen exceedingly slow allocations that
*eventually* succeed for sudden one-shot large allocations.
It's great that you're tracking texImage2D failures already! I just
don't have anything much better to offer you any time soon though, I'm
afraid!
> --
> You received this message because you are subscribed to the Google Groups "WebGL Dev List" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
webgl-dev-lis...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/webgl-dev-list/cfe500eb-f8fc-4588-b40d-0cf81147a3a2n%40googlegroups.com.