Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A game resource caching method and system based on cycle cost

A resource caching and cost technology, applied in memory systems, indoor games, video games, etc., can solve the problem that the page is needed immediately after it is deleted, and achieves enhanced operating stability and rendering efficiency and effect performance, low jitter Overhead, effect of replacement performance increase

Active Publication Date: 2021-08-17
ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD +1
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, if a page is randomly chosen to be deleted during a failure, but that page happens to be needed immediately after being deleted, this will incur another performance overhead of refetching the data from main memory

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
  • A game resource caching method and system based on cycle cost
  • A game resource caching method and system based on cycle cost
  • A game resource caching method and system based on cycle cost

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments. The cycle-cost game resource caching method and system of the present invention are applicable to the processing of game data.

[0020] figure 1 Shown is an overall flow chart according to an embodiment of the present invention. A. Obtain the page data newly added to the cache according to the main memory request, create a one-dimensional array in each page data, and create and initialize the corresponding custom first integer variable in the array; B. Every time when the page data is used or not When used, record the corresponding identifier in the first integer variable, and calculate the life cycle percentage of the page; C. Use the second integer variable to calculate the relative cost of different types of page data; D. When a new page is adde...

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 technical solution of the present invention includes a game resource caching method and system based on cycle cost, which is used to realize: obtain the page data newly added to the cache according to the main memory request, create a one-dimensional array in each page data, and customize the first integer variable; each time when the page data is used or not used, record the corresponding identifier in the first integer variable, and calculate the life cycle percentage of the page; use the second integer variable to calculate the relative cost of different types of page data; when When a new page is added, it traverses the life cycle percentage and relative cost of all pages in the cache, calculates the jitter cost when the page is replaced, and replaces the page whose jitter cost is lower than the specified threshold with the newly added page. The invention has the beneficial effects of shortening the development cycle of the game system, enhancing code maintainability and reusability, and enhancing game running stability, rendering efficiency and effect performance.

Description

technical field [0001] The invention relates to a game resource caching method and system based on cycle cost, belonging to the field of computer game data processing. Background technique [0002] The problem that most game software will face is memory shortage. In games with limited memory, custom resource caches are used to expand the data volume of the scene, while only using a small memory area instead of loading all resources at once. Memory. When using a caching system, the most important factor is choosing the appropriate replacement page to vacate when the cache fills to its upper limit. The choice of the page replacement algorithm is critical when there is a cache miss - this choice is directly related to the performance and efficiency of the game's hardware memory usage. A bad algorithm can often destroy a game's performance, while a well-implemented algorithm can exponentially improve the game's quality without affecting its performance. Popular cache replacem...

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
Patent Type & Authority Patents(China)
IPC IPC(8): A63F13/52G06T1/60G06T15/00G06F16/957G06F12/123G06F12/126G06F12/128
CPCG06F12/123G06F12/126G06F12/128G06F2212/1016G06F2212/154G06F16/9574
Inventor 李茂陈汉辉龙旨日卢歆翮陈镇秋吴海权
Owner ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products