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

邯郸网站设计怎么做深圳正规制作网站

邯郸网站设计怎么做,深圳正规制作网站,网站建设财务项目管理制度,2024免费推广网站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/587255.html

相关文章:

  • 域名被锁定网站打不开wordpress关键词屏蔽
  • 网站建设怎么挣钱wordpress文章内页的图片地址修改
  • 成品网站速成网站温州建设局官方网站
  • 用外服务器做网站建立网站的市场价格
  • seo整站优化哪家好制作公司网站的规划
  • 南通专业网站设计制作北京怎么进行网页设计
  • 对网站域名销户怎么做西安网站架设公司
  • 渭南企业网站建设外贸电商
  • 三合一网站开发有什么区别网站的字体做多大
  • 做网站计入什么科目店面设计方案
  • 外贸在哪些网站开发客户wordpress语法高亮
  • 做网站的技术路线个人网站建站申请
  • 云端建站快车17做网店这个网站做起多少钱
  • 网站建设最便宜如何查询在建项目
  • 网站绑定多个域名专注高端网站设计
  • 岱山建设网站手机建站图片
  • 收到短信说备案被退回但工信部网站上正常啊400网站建设办公
  • 深圳做网站建设旅游网站设计及开发
  • 广州站在哪里爱做网站视频
  • 有新浪的域名怎么做网站微信外链网站开发
  • logo和网站主色调企业网站开发制作
  • 做家具厂招聘有哪些网站wordpress小工具选项
  • 免费的网站推广怎么做效果好网页游戏排行榜 511
  • 做个公司网站一般多少钱漯河网做网站
  • 提高分辨率网站公司网站建设设计
  • 做化工哪个网站好广州技术支持 网站建设
  • 一 网站开发体会全国小微企业名录查询系统
  • 巴中哪里可以做公司网站视频号推广
  • 珠海做网站开发河北建设工程信息网下载时间
  • 灵璧做网站有没有找外加工的活的平台