当前位置: 首页 > wzjs >正文

安康做网站比较有名的个人网站

安康做网站,比较有名的个人网站,济南住建官网,有没有做花卉种子的网站啊P118_ Game Timer 本局赛还剩多长时间. P118_1 Formet And Set Time Text ABlasterPlayerController::SetHUDMatchCountdown(). P118_2 计算剩余时间 我们目前在 PlayerController 做的倒计时逻辑, 之后会把其放到 Game Mode 中 , 这也许就是问题所在. P118_3 问题 各端的…

P118_ Game Timer

  • 本局赛还剩多长时间.

P118_1 Formet And Set Time Text

  • ABlasterPlayerController::SetHUDMatchCountdown().

P118_2 计算剩余时间

  • 我们目前在 PlayerController 做的倒计时逻辑, 之后会把其放到 Game Mode 中 , 这也许就是问题所在.

P118_3 问题

  • 各端的时间都不是同步的.
  • GetWorld()->GetTimeSeconds() 每台机器都不一样.

P119_Syncing Client and Server Time

  • 由于本地测试联网功能各个端没什么延迟 , 所以我们在 ABlasterPlayerController::ReceivedPlayer() 初始化的同步对局时间会失效 , 在5秒后才会同步时间.
  • 整体上逻辑代码很复杂 , 其实就是通过获取 Client=>Server=>Client 的网络传输时间预估一下服务器当前时间.整体的传输时间保存在局部变量 RoundTripTime 中.
  • 通过估计的服务器当前时间 = 服务端调用 ClientRPC 的时间 + RoundTripTime / 2.0f;
  • 然后估算 服务端和客户端的延迟.作为参考的差值 Δ.
  • 当每次设置HUD时 , 预估的当前服务器事件 = 当前时间 + Δ.
  • 这个和我们手动写附加逻辑差不多 , 都是计算初始的向量插值Δ , 再每帧加上这个Δ.

P119_1 override PC::ReceivedPlayer()

  • i'd like to sync up as early as we possibly can.
  • Now Received player is the earliest we can possibly get the time from the server.
  • So that's where we can send our request On Initializtion.

P119_2 PC::Tick()

  • But I'd like to also do this periodically , just in case we get some drift the server time and the client time.
  • That way we can update our client server delta ,  so we can make a float to determin how often we can sync the server.

P119_3 PC::CheckTimeSync()

  • 固定频率执行.

P119_4 PC::ServerRequestServerTime

P120_5 PC::ClientReportServerTime

P120_6 PC::GetServerTime

P120_7 Set HUD

  • 将原本减去当前客户端时间的逻辑,变为减预估的服务器时间.

P120 Match State 

P121 On Match State Set

P122 Warmup Timer

P123 Updateing Warmup Time

P124 Custom Match States

P125 Cooldown Announcement

P126 Restart Game

P127 Blaster Game State

http://www.dtcms.com/wzjs/68693.html

相关文章:

  • 快站微信网站制作优化设计三年级上册答案
  • 网站模板 兼容免费网页在线客服系统
  • 英文网站建设优化查数据的网站有哪些
  • seo收费还是免费深圳白帽优化
  • 教育机构网站建设方案书网站建设方案书
  • 仿威客网站百度如何做广告
  • 吉林网站建设公司天津百度推广排名优化
  • 做旅游攻略比较好的网站产品如何做市场推广
  • 做网站 编程语言让手机变流畅的软件下载
  • 成都有哪些网站建设百度在线客服人工服务
  • 网站代码字体变大百度里面的站长工具怎么取消
  • 小欢喜林磊儿什么网站做家教东莞网站建设推广
  • 山东安康建设项目管理有限公司网站南京高端品牌网站建设
  • 同一个阿里云可以做两个网站吗郑州竞价托管
  • 做网站南宁谷歌seo推广服务
  • 龙岗企业网站改版公司爱站网ip反查域名
  • 使用wordpress做网站谷歌搜图
  • 做网站有一个火箭回顶部地推任务网
  • 网站建设方案怎么写做网站的平台有哪些
  • 哪个网站可以做java项目友情链接交换平台免费
  • 网站地图可以自己做么营销咨询公司排名
  • 阿里云网站建设 部署与发布笔记怎么找当地的地推团队
  • 网站代运营协议百度关键词搜索量统计
  • 视频网站做视频容易火郑州seo培训班
  • 阿里巴巴官方网站兰州关键词快速上首页排名
  • 做网站例子图片描述百度app下载安装官方免费下载
  • wordpress tob5.0优化设计单元测试卷答案
  • 如何做别人的网站源云推广
  • 淮北官方网站自己创建一个网站需要多少钱
  • 商标设计注册搜索引擎优化实训心得