)]}'
{
  "commit": "8d856edaf4ba8ec51b11f2b754987b1eb8fc54eb",
  "tree": "63dff96d2ae6552708f41d018132b73adb50b537",
  "parents": [
    "523d7994a566235cd42f28a712baa931f549f328"
  ],
  "author": {
    "name": "csmartdalton",
    "email": "hello@rive.app",
    "time": "Tue Apr 08 04:37:41 2025 +0000"
  },
  "committer": {
    "name": "csmartdalton",
    "email": "hello@rive.app",
    "time": "Tue Apr 08 04:37:41 2025 +0000"
  },
  "message": "Fix GL buffer race condition\n\nWe were mapping GL buffers with GL_MAP_UNSYNCHRONIZED_BIT, but were then just pretending like eglSwapBuffers() had a ring 3 buffers deep, and that it would magically do the fencing for us. Furthermore, there isn\u0027t always a 1:1 correspondence between Rive frames and calls to eglSwapBuffers() anyway. (As is the case for the mysterious texture_target_gl_preserve GM, which has never fully passed on all devices ... duh!)\n\nIt\u0027s invalid to use GL_MAP_UNSYNCHRONIZED_BIT without explicit fencing. And since (1) there are many OpenGL environments where we could be integrated that are agnostic to fencing, and (2) Rive, by design, should never wait for a fence on the client\u0027s behalf, it\u0027s time to quit using GL_MAP_UNSYNCHRONIZED_BIT. The GL driver can do its own implicit synchronization.\n\nThis also alleviates our need to manage GL buffers in rings. We can just map them and let the driver build rings internally. At this point, the ANGLE Metal backend is mature enough that there is no measurable perf reduction from dropping the buffer rings.\n\n# Description\n\u003c!-- Short, digestible description of what this adds or fixes --\u003e\n\n# Details\n\u003c!-- Rationale, history, Slack discussions, and technical details --\u003e\n\n\u003c!--\nQuestions before merging:\n- If this is a feature, is it sufficiently unit tested?\n- If this fixes a bug, is there a unit test to ensure no regression?\n- Does this concern Marketing, and could we make an announcement about it?\n  - If so, now is the time to notify them\n- Are the commits in [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/) format?\n  - This will help with automated release notes\n--\u003e\n\nDiffs\u003d\n93d4fda5a2 Fix GL buffer race condition (#9387)\n\nCo-authored-by: Chris Dalton \u003c99840794+csmartdalton@users.noreply.github.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d2b352f0492ba82902678ab11abd91d26344e03e",
      "old_mode": 33188,
      "old_path": ".rive_head",
      "new_id": "20057e5c7202dfca485c3fee84c5d3c40f1f7516",
      "new_mode": 33188,
      "new_path": ".rive_head"
    },
    {
      "type": "modify",
      "old_id": "5b28cced90d965d37c936a66b6ba1023e3cdfdf2",
      "old_mode": 33188,
      "old_path": "renderer/include/rive/renderer/gl/gl_state.hpp",
      "new_id": "71fc3e153a29bf142cac3c3c3ea0b7b6b9e0a717",
      "new_mode": 33188,
      "new_path": "renderer/include/rive/renderer/gl/gl_state.hpp"
    },
    {
      "type": "modify",
      "old_id": "e90355117cd047870af3ff36e99bfe23ddef0eed",
      "old_mode": 33188,
      "old_path": "renderer/include/rive/renderer/gl/gles3.hpp",
      "new_id": "5492a6e2fc082f1632c1512e649bf5ebcc4372fc",
      "new_mode": 33188,
      "new_path": "renderer/include/rive/renderer/gl/gles3.hpp"
    },
    {
      "type": "modify",
      "old_id": "64b617409989121ec5d78f935a7fb20b9079dd9f",
      "old_mode": 33188,
      "old_path": "renderer/include/rive/renderer/gl/render_buffer_gl_impl.hpp",
      "new_id": "46576f5b087d002dba94c08c8ceb93704c999b9d",
      "new_mode": 33188,
      "new_path": "renderer/include/rive/renderer/gl/render_buffer_gl_impl.hpp"
    },
    {
      "type": "modify",
      "old_id": "2bbe616b9c28b1ccbfd686f3dc15868ad4396ecf",
      "old_mode": 33188,
      "old_path": "renderer/src/gl/render_buffer_gl_impl.cpp",
      "new_id": "8cd79557aed759e387607218d851934ce124acae",
      "new_mode": 33188,
      "new_path": "renderer/src/gl/render_buffer_gl_impl.cpp"
    },
    {
      "type": "modify",
      "old_id": "ae4d11fe296c3593492a268a6b2e13f4efed6bc1",
      "old_mode": 33188,
      "old_path": "renderer/src/gl/render_context_gl_impl.cpp",
      "new_id": "2cd2e6feb4df542c525789f6863a65c8e3be2893",
      "new_mode": 33188,
      "new_path": "renderer/src/gl/render_context_gl_impl.cpp"
    },
    {
      "type": "modify",
      "old_id": "00d1d2e2c82578c04c902f787bcd978b9ad43937",
      "old_mode": 33188,
      "old_path": "tests/gm/texture_target_gl.cpp",
      "new_id": "3bae8badc3fe6479815dba5004871ea42f7803ab",
      "new_mode": 33188,
      "new_path": "tests/gm/texture_target_gl.cpp"
    }
  ]
}
