当前位置:网站首页>[Huawei online battle service] how can new players make up frames when the client quits reconnection or enters the game halfway?
[Huawei online battle service] how can new players make up frames when the client quits reconnection or enters the game halfway?
2022-07-26 14:59:00 【Huawei Developer Forum】
The problem background
Use frame synchronization to realize multiplayer online games , Framing is an inextricable topic . Conventional weak net complementary frame ,SDK Automatic frame filling has been realized , Games can be ignored . For scenes where the client is shut down for a long time and re enters the room or players join in the middle of the game , New players play online SDK The default is to supplement the frame from the first frame of the game , The online game server will not cache all the supplementary frame data, which is usually cached 5 Minute history frame data , At this time, simply rely on SDK Automatic frame filling will fail . How to solve this problem , Here's a way of thinking .
Solution
Specify the owner of the house or a player in the room in the game , Regularly save the data status that needs to be synchronized in the current game ( For example, refresh every minute , The refresh cycle should be less than five minutes ), And record the current frame id, Then synchronize the data to other players in the room through certain means ( For example, by modifying room properties , Save it in room properties ), When new players join the room, they can go from room Get the room property in the instance , Then analyze the last room state data recorded therein , Get status data and frames id data .
At this time, only based on the room status data , Supplemented by slave frames id+1 After that, the synchronization of room data can be realized by supplementing frames .
How to specify from a id Start framing ? Two scenarios :
Enabled SDK Auto framing scene , call SDK Reset the start of complementary frame provided id Interface .

closed SDK Auto framing scene , call SDK Manual frame filling interface provided .

Get it done !
Official information : Huawei online battle service
边栏推荐
- Figure introduction to neural network core dataset
- 堆叠降噪自动编码器 Stacked Denoising Auto Encoder(SDAE)
- Leetcode659. split the array into continuous subsequences (hash table)
- Fill in the questionnaire and receive the prize | we sincerely invite you to fill in the Google play academy activity survey questionnaire
- 外文文献查找技巧方法有哪些
- PyTorch中 nn.Conv2d与nn.ConvTranspose2d函数的用法
- 基于CAS的SSO单点服务端配置
- Create root permission virtual environment
- Advanced Qt development: how to fit the window width and height when displaying (fitwidth+fitheight)
- Character function and string function and memory function
猜你喜欢

Summary of target tracking related knowledge

median filter
Network pictures are transferred locally, causing the kernel to exit

基于CAS的SSO单点服务端配置

C nanui related function integration

SP export map to Maya
![[dry goods] data structure and algorithm principle behind MySQL index](/img/80/d5ab431cd5112b1637ee07d5b59afa.png)
[dry goods] data structure and algorithm principle behind MySQL index

Siamrpn: recommended regional network and twin network

Simple implementation of pytorch

【华为联机对战服务】客户端退出重连或中途进入游戏,新玩家如何补帧?
随机推荐
Crystal special decoration submitted for registration: the first quarter revenue fell by 80%, and Chen Bo controlled 68.5% of the equity
RPN:Region Proposal Networks (区域候选网络)
Character function and string function and memory function
JS to realize the number to amount price thousand separator
OSS deletes all files two days before the current time
llcc68广播唤醒简单说明
OSPF和MGRE实验
AMB | 迈向可持续农业:根际微生物工程
【整数规划】
Create root permission virtual environment
Lean product development: principles, methods and Implementation
The practice of software R & D should start from the design
自编码器 AE(AutoEncoder)程序
Simulation of character function and string function
oss删除当前时间前两天的所有文件
数据权限就该这么设计,yyyds!
Sqldeveloper tools quick start
Summary and analysis of image level weakly supervised image semantic segmentation
Self encoder AE (autoencoder) program
Whaledi message queue stability improvement practice