Skip to content

large kernels sometimes take very long to run the first time and sometimes crash the webgl context #408

@chadams77

Description

@chadams77

Sometimes I'll be able to refresh multiple times without it happening, other times it will spit out 'webgl context lost' in the console, some of those times it will black screen for a bit, sometimes I need to restart chrome and/or my computer to get it to work again.

It seems to happen when a kernel is first run, i.e. if you change the render kernel in the demo by pressing [R] it may freeze for a while.

It's hard to catch with the profiler, but the one time I caught it if I recall most of the time was spent in glGet(something)Location(some type)

Running the latest stable version of Chrome on Windows 10 with a 6GB GTX 1060

Example: https://chadams77.github.io/cs-SSPS/
Source: https://github.com/chadams77/cs-SSPS/blob/master/scripts/ssps.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions