<?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/%E8%B5%84%E6%BA%90%E7%94%9F%E4%BA%A7/</link><description>Recent content in 资源生产 on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Tue, 27 Aug 2024 18:52:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/%E8%B5%84%E6%BA%90%E7%94%9F%E4%BA%A7/index.xml" rel="self" type="application/rss+xml"/><item><title>游戏服务器离线推进架构设计</title><link>https://plumephp.com/game-server-offline-progression-architecture-design/</link><pubDate>Tue, 27 Aug 2024 18:52:00 +0800</pubDate><guid>https://plumephp.com/game-server-offline-progression-architecture-design/</guid><description>&lt;h2 id="背景与问题"&gt;背景与问题&lt;/h2&gt;
&lt;p&gt;离线推进看似只是一个公式：离线时长乘以产量。实际上它牵涉到服务器时间、配置版本、加速道具、建筑队列、上限仓库、活动倍率、封禁状态和跨设备登录。玩家会修改本地时间，客户端会重复请求领取，配置会在离线期间更新，活动会在玩家离线时开始和结束。若离线收益只由客户端计算，资产风险很高；若每个玩法自己补算，结果又会互相打架。离线推进架构需要把时间区间切片、规则版本、收益上限和领取幂等统一起来。&lt;/p&gt;</description></item></channel></rss>