{"id":13743112,"url":"https://github.com/elsassph/starling-imagebatch","last_synced_at":"2026-03-09T06:31:42.751Z","repository":{"id":1784111,"uuid":"2707908","full_name":"elsassph/starling-imagebatch","owner":"elsassph","description":"Optimized Image batching for Starling.","archived":false,"fork":false,"pushed_at":"2013-02-12T10:33:40.000Z","size":457,"stargazers_count":58,"open_issues_count":2,"forks_count":13,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-05T02:22:45.249Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ActionScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elsassph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-04T08:23:02.000Z","updated_at":"2021-07-27T21:13:40.000Z","dependencies_parsed_at":"2022-09-07T10:40:16.205Z","dependency_job_id":null,"html_url":"https://github.com/elsassph/starling-imagebatch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elsassph/starling-imagebatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elsassph%2Fstarling-imagebatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elsassph%2Fstarling-imagebatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elsassph%2Fstarling-imagebatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elsassph%2Fstarling-imagebatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elsassph","download_url":"https://codeload.github.com/elsassph/starling-imagebatch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elsassph%2Fstarling-imagebatch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30284774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-08-03T05:00:40.813Z","updated_at":"2026-03-09T06:31:42.721Z","avatar_url":"https://github.com/elsassph.png","language":"ActionScript","readme":"**An optimized Image batch class for Starling.**\n\n*Note: Beta code and API*\n\nThe ImageBatch can efficiently (in terms of CPU and memory) render a large number of images sharing the same texture. \nThis class is designed as an object pool: items are recycled and vectors are never modified.\n\n[Try the demo][1]: 8k particles with position/alpha/rotation animation and different textures from a shared spritesheet.\n\nIf you're unimpressed, that's ok - just notice that Starling rendering model adds an important overhead compared \nto heavily optimized demos or pure GPU particles (like ND2D offers). But here you can animate each element \nindependently, and this is a big difference compared to animating a few high-polys models.\n\n\n**Features:**\n\n - low memory footprint, items pooling\n - animate: x, y, scale, alpha, color, rotation, texture\n - (shared) spritesheet support\n - store custom data in items' \"tag\" property\n\n**Warning:**\n\nStarling TextureAtlas always returns new Texture instances - you must cache them if you manage animations yourself. \n\n**Important implementation detail:**\n\nThe batch has a vector of items (the pool) and a 'count' index indicating how many items from the pool to render. \nWhen removing an item, it isn't actually removed:\n\n- the item to remove, say at index 'i', is swapped with the last item, at index 'count-1',\n- count is decreased because now the last item should not be rendered,\n- if you were iterating the items vector, the item at index 'i' should be processed again (if 'i' is still \u003c count).\n\n\n**Credits:**\n\nThis class is inspired by Starling's [Particle System extension][1] but with geometry building inlined.\n\n[1]: http://philippe.elsass.me/lab/StarlingImageBatch\n[2]: https://github.com/PrimaryFeather/Starling-Extension-Particle-System\n\n","funding_links":[],"categories":["Multimedia"],"sub_categories":["Image"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felsassph%2Fstarling-imagebatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felsassph%2Fstarling-imagebatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felsassph%2Fstarling-imagebatch/lists"}