{"id":33023439,"url":"https://github.com/AlexMerzlikin/Unity-BatchRendererGroup-Boids","last_synced_at":"2025-11-25T04:30:29.867Z","repository":{"id":89370035,"uuid":"462917023","full_name":"AlexMerzlikin/Unity-BatchRendererGroup-Boids","owner":"AlexMerzlikin","description":"A sample BRG project for the blog post @ https://gamedev.center","archived":false,"fork":false,"pushed_at":"2023-06-22T19:47:19.000Z","size":9053,"stargazers_count":52,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-06T23:38:45.829Z","etag":null,"topics":["batchrenderergroup","unity"],"latest_commit_sha":null,"homepage":"https://gamedev.center/trying-out-new-unity-api-batchrenderergroup/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexMerzlikin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-02-23T21:48:49.000Z","updated_at":"2024-05-08T00:47:23.000Z","dependencies_parsed_at":"2024-01-14T01:25:39.954Z","dependency_job_id":"b00056e2-901f-4076-9526-2fc70da3bedd","html_url":"https://github.com/AlexMerzlikin/Unity-BatchRendererGroup-Boids","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlexMerzlikin/Unity-BatchRendererGroup-Boids","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexMerzlikin%2FUnity-BatchRendererGroup-Boids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexMerzlikin%2FUnity-BatchRendererGroup-Boids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexMerzlikin%2FUnity-BatchRendererGroup-Boids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexMerzlikin%2FUnity-BatchRendererGroup-Boids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexMerzlikin","download_url":"https://codeload.github.com/AlexMerzlikin/Unity-BatchRendererGroup-Boids/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexMerzlikin%2FUnity-BatchRendererGroup-Boids/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-25T02:00:05.816Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["batchrenderergroup","unity"],"created_at":"2025-11-13T19:00:34.940Z","updated_at":"2025-11-25T04:30:29.854Z","avatar_url":"https://github.com/AlexMerzlikin.png","language":"C#","funding_links":[],"categories":["ComputerGraphics \u0026\u0026 Shadingv"],"sub_categories":["Google Analytics"],"readme":"# Unity-BatchRendererGroup-Boids\n\nA simple example how to use the new BatchRendererGroup API to render boids made for my blog at https://gamedev.center/trying-out-new-unity-api-batchrenderergroup/.\n\n![](BRG_Boids.gif)\n\nFor calculating boids behaviour I used [ta-boids](https://github.com/ThousandAnt/ta-boids).\n\nHowever, for me this boids solution turned out to be a bit unstable, as even little performance dips or interaction with the editor breaks the __centerFlock_ pointer, leaves it as (NaN, NaN, NaN) and boids stop working both for my BRG variant, as well as GameObject and Instanced variants provided in the boids repo. \nSo in the editor I could only test boids with a small amount of objects up to 2k. When I have found out this issue, it was already too late and I was too lazy to find a new boids lib and redo BRG variant again.\nAnyway it suits my goal to test BRG compared to GameObjects and Instancing. \n\nAll samples are present in the sample scene: [BoidBRGScene](https://github.com/AlexMerzlikin/Unity-BatchRendererGroup-Boids/blob/master/Assets/Scenes/BoidBRGScene.unity). Just turn on and off the ones you would like to check.\n\n# Custom Universal Render Pipeline Shader With DOTS Instancing Support\n\nThe repo also contains the most basic example of [a custom URP shader](https://github.com/AlexMerzlikin/Unity-BatchRendererGroup-Boids/blob/master/Assets/Shaders/CustomURPUnlit.shader) thats supports DOTS instancing and therefore can be used with BRG.\n![](URP_shader_with_dots_instancing_support.png)\n\n# References\nhttps://forum.unity.com/threads/new-batchrenderergroup-api-for-2022-1.1230669/\n\nExamples by Unity: https://github.com/Unity-Technologies/Graphics/tree/master/TestProjects/BatchRendererGroup_URP/Assets/SampleScenes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAlexMerzlikin%2FUnity-BatchRendererGroup-Boids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAlexMerzlikin%2FUnity-BatchRendererGroup-Boids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAlexMerzlikin%2FUnity-BatchRendererGroup-Boids/lists"}