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

Game configuration data calling method, device, storage medium and electronic device

A technology for configuring data and games, applied in the computer field, can solve problems such as limitation, affecting packaging speed, and excessive number of files, so as to reduce memory usage, solve high memory usage, and optimize memory usage.

Pending Publication Date: 2022-01-07
BEIJING PERFECT WORLD SOFTWARE TECH DEV CO LTD
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This solution solves some memory problems, but there are still defects: after splitting, the number of files is too large, which affects the packaging speed; for file search, it is limited by IO speed, and the time performance is not good; for some data types, such as luatable, it will After the data is read, the data cannot be automatically garbage collected by the virtual machine; the data cannot be range searched, or precisely located to a certain row or column
This method solves part of the memory problem, but there are also some defects: it takes up less memory than the direct luatable format, but because the entire table data is still added to the memory, it does not fundamentally solve the problem. When the project scale reaches a certain level There will still be a problem of insufficient memory; it is inconvenient to use, because in order to save space, the deserialization interface of each table needs to be written manually
[0005] For the above-mentioned problems existing in related technologies, no effective solution has been found yet

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
  • Game configuration data calling method, device, storage medium and electronic device
  • Game configuration data calling method, device, storage medium and electronic device
  • Game configuration data calling method, device, storage medium and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile phone, a tablet, a server, a computer or similar electronic terminals. Take running on a computer as an example, figure 1 It is a block diagram of the hardware structure of a calling computer for game configuration data according to an embodiment of the present invention. Such as figure 1 As shown, the computer may include one or more ( figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data. Optionally, the above-mentioned computer can also be A transmission device 106 for communication functions and an input and output device 108 are included. Those of ordinary skill in the art can understand that, figure 1 The shown structure is only for illustration, and it does not limit the structure o...

Embodiment 2

[0098] In this embodiment, a device for invoking game configuration data is also provided, which is used to implement the above embodiments and preferred implementation modes, and what has been explained will not be repeated. As used below, the term "module" may be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

[0099] Figure 6 It is a structural block diagram of a device for calling game configuration data according to an embodiment of the present invention, such as Figure 6 As shown, the device includes: a reading module 60, an exporting module 62, and a calling module 64, wherein,

[0100] A reading module 60, configured to read configuration information of several source form files, wherein the configuration information is used to...

Embodiment 3

[0113] The embodiment of the present application also provides an electronic device, Figure 7 is a structural diagram of an electronic device according to an embodiment of the present invention, such as Figure 7 As shown, it includes a processor 71, a communication interface 72, a memory 73 and a communication bus 74, wherein the processor 71, the communication interface 72, and the memory 73 complete mutual communication through the communication bus 74, and the memory 73 is used to store computer programs;

[0114] The processor 71 is configured to implement the following steps when executing the program stored on the memory 73: read the configuration information of several source form files, wherein the configuration information is used to indicate the data usage rules of the source form files; For each source table file, export the game configuration data in the source table file to the database file of the database engine based on the configuration information, wherein ...

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 provides a game configuration data calling method, device, a storage medium and an electronic device.The method comprises the steps that configuration information of a plurality of source table files is read, and the configuration information is used for indicating data use rules of the source table files; aiming at each source table file, based on the configuration information, the game configuration data in the source table file is exported into a database file of a database engine, and the database file is stored on a disk; and calling the game configuration data to a memory from the database file by adopting an embedded script. Through the method and the device, the technical problem of high memory occupation caused by calling the game configuration data from the outside in related technologies is solved, and the memory occupation during running is effectively reduced.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method and device for invoking game configuration data, a storage medium, and an electronic device. Background technique [0002] In related technologies, there is a large amount of configuration data in the game development process, which is used to configure the internal data attributes of the game. Most of these attributes are related to the gameplay and values ​​of the game. During the running of the game, the configuration data is loaded into the memory for use through the configuration file. [0003] In the solution of the related technology, the source file is generally exported to a specific format, and the data is loaded into the memory when used, and then converted into a lua table format for use in the game business. Because the configuration data needs to be searched according to the id of the table where the data is located, all the data in the table nee...

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 Applications(China)
IPC IPC(8): G06F8/71G06F9/455G06F16/22G06F16/245G06F16/25G06F21/60
CPCG06F8/71G06F9/45558G06F16/252G06F16/2246G06F16/2282G06F21/602G06F16/245G06F2009/45583
Inventor 张海伟周颢
Owner BEIJING PERFECT WORLD SOFTWARE TECH DEV 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