Supercharge Your Innovation With Domain-Expert AI Agents!

Precise physical system synchronization method based on fixed point number

A physical system and fixed-point number technology, applied in complex mathematical operations, etc., can solve problems such as floating-point accuracy, physical asynchrony of different machines, high server performance and energy consumption, etc., to reduce calculation burden and synchronization burden, improve user experience, highly scalable effects

Pending Publication Date: 2022-08-02
深圳市畅娱时空网络科技有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the present invention is to overcome the deficiencies of the prior art, provide a method for synchronizing precise physical systems based on fixed-point numbers, and solve the problems of floating-point accuracy and physical asynchrony of different machines in physical simulation and synchronization of current online games. And in order to ensure synchronization, the commonly used synchronization recovery technology will bring about the degradation of user experience and the problems of high server performance consumption

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Precise physical system synchronization method based on fixed point number
  • Precise physical system synchronization method based on fixed point number
  • Precise physical system synchronization method based on fixed point number

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0049] The present invention provides a precise physical system synchronization method based on fixed-point numbers, comprising the following steps:

[0050] Step 1: See figure 1 , which expresses all fixed-point or floating-point numbers as 64-bit binary fixed-point numbers instead. The specific steps are: use the 1st bit of a 64-bit fixed-point number as the sign bit, the 2-48th bit as the integer bit, and the 49th-64th bit as the decimal place to express all fixed-point or floating-point numbers.

[0051] Step 2: Repackage related constructors, including long integers (long), integers (int), and strings (string). The encapsulated constructor is as follows:

[0052] Constructor (long_raw): direct storage;

[0053] Constructor (int_raw): _raw is left shifted by 16 bits and stored;

[0054] Constructor (string_raw): String segmentation, fi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an accurate physical system synchronization method based on a fixed point number. According to the physical system synchronization method provided by the invention, the floating-point number precision problem and the network physical synchronization problem of physical simulation can be solved, the consistency of physical simulation results on different equipment terminals is ensured, and the calculation burden and the synchronization burden of the server are greatly reduced. And meanwhile, the user experience is obviously improved by the simplified synchronization process. Taking an inventor self-researched game actually using the technology as an example, the synchronization recovery time after use is reduced from 30 seconds to less than 10 seconds, and the flicker problem caused by physical asynchronization in the playing process of a user is completely solved. Moreover, the technology has very high expansibility, and a processing scheme for the floating point precision problem not only can be used for a physical system, but also can be used for solving any problems caused by floating point calculation precision and floating point errors of different devices.

Description

technical field [0001] The invention relates to the technical field of game production engine software and development systems, in particular to a precise physical system synchronization method based on fixed-point numbers. Background technique [0002] Due to the internal principles of computer digital operations, the computer's memory, cpu registers, and other hardware units are limited, and can only represent a limited number of binary digits. The problem is that there will be slight errors when calculating the numerical value with more digits and higher precision. It is usually negligible, but in the case of a large number of calculations, or in situations with high synchronization requirements, errors will arise. [0003] On the other hand, the hardware of different machine terminals has different implementation methods for data calculation, which will cause the same calculation, and the results obtained after calculation by different CPUs also have slight differences,...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/15G06F17/16
CPCG06F17/15G06F17/16
Inventor 余田李佳黎
Owner 深圳市畅娱时空网络科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More