{"id":44610427,"url":"https://github.com/sundream/aoi","last_synced_at":"2026-02-26T22:01:19.522Z","repository":{"id":50731259,"uuid":"159262666","full_name":"sundream/aoi","owner":"sundream","description":"九宫格和十字链表两种实现","archived":false,"fork":false,"pushed_at":"2019-04-18T10:46:15.000Z","size":14,"stargazers_count":21,"open_issues_count":2,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-03-20T16:32:02.563Z","etag":null,"topics":["aoi","c","game","lua-bindings","skynet"],"latest_commit_sha":null,"homepage":null,"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/sundream.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}},"created_at":"2018-11-27T02:18:37.000Z","updated_at":"2023-11-13T15:37:36.000Z","dependencies_parsed_at":"2022-09-12T10:12:23.839Z","dependency_job_id":null,"html_url":"https://github.com/sundream/aoi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sundream/aoi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sundream%2Faoi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sundream%2Faoi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sundream%2Faoi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sundream%2Faoi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sundream","download_url":"https://codeload.github.com/sundream/aoi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sundream%2Faoi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29874453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T21:05:00.265Z","status":"ssl_error","status_checked_at":"2026-02-26T20:57:13.669Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["aoi","c","game","lua-bindings","skynet"],"created_at":"2026-02-14T12:00:22.735Z","updated_at":"2026-02-26T22:01:19.500Z","avatar_url":"https://github.com/sundream.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"## 介绍\n* aoi的九宫格和十字链表两种实现\n\n## 状态\n* 尚未经过线上项目验证\n\n## API\n* 见grid/src/aoi.h或者crosslink/src/aoi.h\n* 另外lua-bind相关见grid/lua-bind/laoi.c或者crosslink/lua-bind/laoi.c\n\n## 编译和运行\n以九宫格实现为例说明,十字链表实现编译方式完全相同\n* c源码:\n\t* 编译: cd grid/src \u0026\u0026 make clean \u0026\u0026 make all\n\t* 运行: ./aoi\n\n* lua绑定: \n\t* 编译: cd grid/lua-bind \u0026\u0026 make clean \u0026\u0026 make all\n\t* 运行: lua test.lua\n\n## 用法\n* 见各目录下的test.c/test.lua\n\n## 优缺点\n* 九宫格\n\t* 优点: cpu消耗小\n\t* 缺点: 内存开销大,内存消耗不仅和实体数有关,还和场景大小成正比\n\n* 十字链表\n\t* 优点: 内存开销小,内存消耗仅和实体数有关,和场景大小无关\n\t* 缺点: cpu消耗高,每次移动都需要计算视野差,当实体在小区域堆积严重时效率更差\n\n## 参考\n* [aoi](https://github.com/cloudwu/aoi)\n* [十字链表实现](http://github.com/lichuang/AOI)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsundream%2Faoi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsundream%2Faoi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsundream%2Faoi/lists"}