<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>地图事件 on PlumePHP</title><link>https://plumephp.com/tags/%E5%9C%B0%E5%9B%BE%E4%BA%8B%E4%BB%B6/</link><description>Recent content in 地图事件 on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Thu, 26 Aug 2021 08:39:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/%E5%9C%B0%E5%9B%BE%E4%BA%8B%E4%BB%B6/index.xml" rel="self" type="application/rss+xml"/><item><title>空间事件索引架构：地图上的触发器、采集点和区域效果如何高效查询</title><link>https://plumephp.com/game-server-spatial-event-index-architecture/</link><pubDate>Thu, 26 Aug 2021 08:39:00 +0800</pubDate><guid>https://plumephp.com/game-server-spatial-event-index-architecture/</guid><description>&lt;h2 id="背景架构问题通常藏在正常路径之外"&gt;背景：架构问题通常藏在正常路径之外&lt;/h2&gt;
&lt;p&gt;地图服务端不仅要同步玩家和怪物，还要处理大量空间事件：玩家走进毒圈，靠近采集点，进入任务区域，踩到机关，触发世界事件，进入安全区或离开战斗区。如果每个 tick 都遍历地图上所有触发器和所有玩家，玩家一多就会变成性能灾难。空间事件索引架构要把“哪些事件可能影响这个玩家”快速找出来。&lt;/p&gt;</description></item></channel></rss>