Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support device lost and automatic restore #1374

Merged
merged 134 commits into from
Mar 15, 2023

Conversation

GuoLei1990
Copy link
Member

@GuoLei1990 GuoLei1990 commented Feb 14, 2023

Please check if the PR fulfills these requirements

Other modifications:

  • Delete deprecate Event class and some method of EventDispatcher
  • Separate Buffer webgl related implementation to GLBuffer
  • Optimization GC and performace for GLTF Loader
  • Fix spell errors
  • Optimize destroy logic
  • Improve shader compile error log

TODO:

  • Destroy relate unit test
  • Device restore unit test
  • Device restore manual
  • Optimize glTF context buffer info
  • Optimzation WebGLRenderer resetState
  • BlendShape unit test
  • Support sparse buffer restore
  • IndexBuffer restore todo
  • Opt WebGLRenderer resetState and _initGLState
  • Consider lost context when resource is loading and lost again when restore content
  • Use webgl-debug.js to write unit test
  • glCreateXXX() should do some project
  • loseContext when context init();
  • PrimitiveMesh restore
  • build-in resource restore
  • Sprite and text restore

@GuoLei1990 GuoLei1990 changed the base branch from main to dev/1.0 February 14, 2023 03:10
@GuoLei1990 GuoLei1990 added the enhancement New feature or request label Feb 14, 2023
@GuoLei1990 GuoLei1990 self-assigned this Feb 14, 2023
@GuoLei1990 GuoLei1990 added this to the 1.0 milestone Feb 14, 2023
@GuoLei1990 GuoLei1990 marked this pull request as draft February 14, 2023 04:45
…xt-restore

* commit 'add6e916a8327e492f8fec16bc0e7cd543a59566':
  Move font map cache from `Font` to `Engine` (galacean#1387)
  "v1.0.0-alpha.0"
  glTF parse support custom extsnions and parser (galacean#1008)
  Optimization `Transform` direction related API (galacean#1381)
  refactor: opt code
  refactor: opt code
  refactor: opt code
  refactor: opt code
  refactor: opt code
  feat: refactor transform API
  Add `toJSON` in base math class (galacean#1380)
@GuoLei1990 GuoLei1990 marked this pull request as ready for review March 13, 2023 07:21
@GuoLei1990 GuoLei1990 requested a review from singlecoder March 13, 2023 07:41
packages/core/src/asset/ResourceManager.ts Outdated Show resolved Hide resolved
@GuoLei1990 GuoLei1990 merged commit 00a0b16 into galacean:dev/1.0 Mar 15, 2023
@GuoLei1990 GuoLei1990 changed the title Support device lost Support device lost and restore Mar 15, 2023
@GuoLei1990 GuoLei1990 changed the title Support device lost and restore Support device lost and automatic restore Mar 15, 2023
@GuoLei1990 GuoLei1990 mentioned this pull request Mar 16, 2023
37 tasks
GuoLei1990 added a commit to GuoLei1990/galacean-engine that referenced this pull request Mar 16, 2023
* dev/1.0: (41 commits)
  fix: package.json
  Support device lost  (galacean#1374)
  "v0.9.0-beta.70"
  fix: add shadow parser (galacean#1411)
  Add `toJSON` in base math class (galacean#1380) (galacean#1409)
  refactor(particle): Add an infinite bounding box to the particle system and it will never be clipped (galacean#1410)
  "v0.9.0-beta.69"
  Fix glTF SkinnedMeshRenderer default local bounds (galacean#1405)
  Support shader replacement and sub shader (galacean#1394)
  Fix camera cull bug (galacean#1396)
  "v0.9.0-beta.68"
  fix: InputManager default listener target
  "v0.9.0-beta.67"
  Fix shader compile performance on some windows device (galacean#1390)
  Move font map cache from `Font` to `Engine` (galacean#1387)
  "v1.0.0-alpha.0"
  glTF parse support custom extsnions and parser (galacean#1008)
  Optimization `Transform` direction related API (galacean#1381)
  refactor: opt code
  refactor: opt code
  ...
@GuoLei1990 GuoLei1990 deleted the pr/context-restore branch September 18, 2023 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants