CN109889656B - Data reading method, device, equipment and storage medium - Google Patents

Data reading method, device, equipment and storage medium Download PDF

Info

Publication number
CN109889656B
CN109889656B CN201811641933.3A CN201811641933A CN109889656B CN 109889656 B CN109889656 B CN 109889656B CN 201811641933 A CN201811641933 A CN 201811641933A CN 109889656 B CN109889656 B CN 109889656B
Authority
CN
China
Prior art keywords
level
mark
identifier
determining
identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201811641933.3A
Other languages
Chinese (zh)
Other versions
CN109889656A (en
Inventor
康瑞东
李伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201811641933.3A priority Critical patent/CN109889656B/en
Publication of CN109889656A publication Critical patent/CN109889656A/en
Application granted granted Critical
Publication of CN109889656B publication Critical patent/CN109889656B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The application relates to a data reading method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring a target level identification corresponding to a level to be operated; determining an associated level identifier set by using the target level identifier; loading the level data corresponding to the associated level identification set into an operating memory; and reading the gate data. The method can solve the problems of more time consumption and poor user experience in the process of reading the checkpoint data, and achieves the technical effects of reducing data reading time and improving user experience.

Description

Data reading method, device, equipment and storage medium
Technical Field
The present application relates to the field of terminals, and in particular, to a data reading method, apparatus, device, and storage medium.
Background
With the development of the internet and the popularization of mobile terminals, more and more young people take hand-games as main entertainment items. When a user starts playing a certain level, the processor of the mobile terminal first reads corresponding level data from the memory to the operating memory, then reads corresponding level data from the operating memory, and after the reading of the corresponding level data in the operating memory is completed, the user can start playing the level. Because the user needs to wait for a long time before playing each level, the time consumption is high and the user experience is poor in the process of reading the level data.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the present application provides a data reading method, an apparatus, a device and a storage medium.
In a first aspect, an embodiment of the present application provides a data reading method, including:
acquiring a target level identification corresponding to a level to be operated;
determining a related level identifier set by using the target level identifier;
loading the level data corresponding to the associated level identification set into an operating memory;
and reading the checkpoint data.
Optionally, the determining, by using the target level identifier, an associated level identifier set includes:
judging whether the target level mark is the same as the initial level mark in the level mark sequence or not;
if the target level mark is the same as the initial level mark, determining the initial part including a first preset number of level marks as the associated level mark set in the level mark sequence;
if the target level mark is different from the initial level mark, judging whether the target level mark is the same as the last level mark in the level mark sequence;
if the target level mark is the same as the last level mark, determining the last part including a second preset number of level marks as the associated level mark set in the level mark sequence;
and if the target level mark is different from the last level mark, determining a sequence part which comprises a third preset number of level marks and comprises the target level mark as the associated level mark set in the level mark sequence.
Optionally, the loading the level data corresponding to the associated level identifier set into an operating memory includes:
acquiring the total storage space of the operating memory;
determining a loadable memory space according to the total memory space;
determining a pre-loading storage space for storing the level data corresponding to the associated level identification set;
if the preloading storage space is smaller than or equal to the loadable storage space, loading the level data corresponding to the associated level identification set into the operating memory;
and if the preloading storage space is larger than the loadable storage space, determining a loadable level identification set by using the associated level identification set, and loading level data corresponding to the loadable level identification set into the operating memory.
Optionally, the determining a loadable level identifier set by using the associated level identifier set includes:
removing the minimum level mark and the maximum level mark in the associated level mark set to obtain an associated level mark subset;
determining an adjustment loading storage space for storing the level data corresponding to the associated level identifier subset;
and if the adjusted load storage space is less than or equal to the loadable storage space, determining the associated level identifier subset as the loadable level identifier set.
Optionally, the method further includes:
after the level corresponding to the target level identification starts to operate, acquiring an updated level identification corresponding to the level to be operated;
determining an updated level identifier set by using the updated level identifier;
searching for the same level mark in the updated level mark set and the associated level mark set to obtain the same level mark set;
subtracting the same level identifier set from the updated level identifier set to obtain a first level identifier difference set;
and loading the level data corresponding to the first level identification difference set into the operating memory.
Optionally, the method further includes:
subtracting the same level identification set from the associated level identification set to obtain a second level identification difference set;
and deleting the level data corresponding to the second level identification difference set from the operating memory.
Optionally, the method further includes:
and reading the level data corresponding to the first level identification difference set.
In a second aspect, an embodiment of the present application provides a data reading apparatus, including: the device comprises an acquisition module, a determination module, a loading module and a reading module;
the acquisition module is used for acquiring a target level mark corresponding to a level to be operated;
the determining module is used for determining a relevant level identifier set by using the target level identifier;
the loading module is used for loading the level data corresponding to the associated level identifier set into an operating memory;
and the reading module is used for reading the checkpoint data.
In a third aspect, an embodiment of the present application provides a data reading apparatus, including: a processor, a memory, a communication interface, and a bus;
the processor, the memory and the communication interface complete mutual communication through the bus;
the communication interface is used for information transmission between external devices;
the processor is configured to invoke program instructions in the memory to perform the steps of the method according to any of the first aspects.
In a fourth aspect, the present embodiments provide a computer-readable storage medium storing computer instructions for causing a computer to perform the steps of the method according to any one of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
the embodiment of the application provides a data reading method, which comprises the following steps: acquiring a target level identification corresponding to a level to be operated; determining a related level identifier set by using the target level identifier; loading the level data corresponding to the associated level identification set into an operating memory; and reading the level data, so that after the level corresponding to the target level identification is finished, when the level associated with the finished level is operated, a user does not need to wait for a long time, and therefore the problems of more time consumption and poor user experience in the level data reading process can be solved, and the technical effects of reducing the data reading time and improving the user experience are achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention;
fig. 2 is a flowchart of a data reading method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a data reading apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data reading apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The application provides a data reading method, a data reading device, equipment and a storage medium, which can solve the problems of more time consumption and poor user experience in the process of reading checkpoint data, and achieve the technical effects of reducing data reading time and improving user experience.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, an a/V (audio/video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, etc. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit may include at least one of a broadcast receiving module 111, a mobile communication module 112, a wireless internet module 113, a short-range communication module 114, and a location information module 115.
The broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel. The broadcast channel may include a satellite channel and/or a terrestrial channel. The broadcast management server may be a server that generates and transmits a broadcast signal and/or broadcast associated information or a server that receives a previously generated broadcast signal and/or broadcast associated information and transmits it to a terminal. The broadcast signal may include a TV broadcast signal, a radio broadcast signal, a data broadcast signal, and the like. Also, the broadcast signal may further include a broadcast signal combined with a TV or radio broadcast signal. The broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received by the mobile communication module 112. The broadcast signal may exist in various forms, for example, it may exist in the form of an Electronic Program Guide (EPG) of Digital Multimedia Broadcasting (DMB), an Electronic Service Guide (ESG) of digital video broadcasting-handheld (DVB-H), and the like. The broadcast receiving module 111 may receive a signal broadcast by using various types of broadcasting systems. In particular, the broadcast receiving module 111 may receive digital broadcasting by using a digital broadcasting system such as a data broadcasting system of multimedia broadcasting-terrestrial (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video broadcasting-handheld (DVB-H), forward link media (MediaFLO @), terrestrial digital broadcasting integrated service (ISDB-T), and the like. The broadcast receiving module 111 may be constructed to be suitable for various broadcasting systems that provide broadcast signals as well as the above-mentioned digital broadcasting systems. The broadcast signal and/or broadcast associated information received via the broadcast receiving module 111 may be stored in the memory 160 (or other type of storage medium).
The mobile communication module 112 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 113 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include WLAN (wireless LAN) (Wi-Fi), Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like.
The short-range communication module 114 is a module for supporting short-range communication. Some examples of short-range communication technologies include bluetooth (TM), Radio Frequency Identification (RFID), infrared data association (IrDA), Ultra Wideband (UWB), zigbee (TM), and the like.
The location information module 115 is a module for checking or acquiring location information of the mobile terminal. A typical example of the location information module is a GPS (global positioning system). According to the current technology, the GPS module 115 calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information, thereby accurately calculating three-dimensional current location information according to longitude, latitude, and altitude. Currently, a method for calculating position and time information uses three satellites and corrects an error of the calculated position and time information by using another satellite. In addition, the GPS module 115 can calculate speed information by continuously calculating current position information in real time.
The a/V input unit 120 is used to receive an audio or video signal. The a/V input unit 120 may include a camera 121 and a microphone 122, and the camera 121 processes image data of still pictures or video obtained by an image capturing apparatus in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 151. The image frames processed by the cameras 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the construction of the mobile terminal. The microphone 122 may receive sounds (audio data) via the microphone in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the mobile communication module 112 in case of a phone call mode. The microphone 122 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 140 may sense whether the slide-type phone is opened or closed. In addition, the sensing unit 140 can detect whether the power supply unit 190 supplies power or whether the interface unit 170 is coupled with an external device.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal. Various command signals or power input from the cradle may be used as signals for recognizing whether the mobile terminal is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151, an audio output module 152, an alarm unit 153, and the like.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area. In the embodiment of the present application, there may be two display units 151 respectively disposed on the front and back of the mobile terminal.
The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output as sound when the mobile terminal is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 152 may include a speaker, a buzzer, and the like.
The alarm unit 153 may provide an output to notify the mobile terminal 100 of the occurrence of an event. Typical events may include call reception, message reception, key signal input, touch input, and the like. In addition to audio or video output, the alarm unit 153 may provide output in different ways to notify the occurrence of an event. For example, the alarm unit 153 may provide an output in the form of vibration, and when a call, a message, or some other incoming communication (communicating communication) is received, the alarm unit 153 may provide a tactile output (i.e., vibration) to inform the user thereof. By providing such a tactile output, the user can recognize the occurrence of various events even when the user's mobile phone is in the user's pocket. The alarm unit 153 may also provide an output notifying the occurrence of an event via the display unit 151 or the audio output module 152.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Based on the hardware structure of the mobile terminal, the invention provides various embodiments of the method.
First, a data reading method in the embodiment of the present application is described in detail, as shown in fig. 2, the data reading method may include steps S101 to S104:
s101, acquiring a target level identification corresponding to a level to be operated.
The target level identifier may be a level identifier displayed on a screen of the mobile terminal during game initialization. Or may be a user selected level identification.
And S102, determining a related level identifier set by using the target level identifier.
For example, if the target level identification is 100, the associated level identification set may be {95,96,97,98,99,100,101,102,103,104,105}, or the associated level identification set may be {97,98,99,100,101,102,103,104,105,106,107 }.
And S103, loading the level data corresponding to the associated level identification set into an operating memory.
And S104, reading the checkpoint data.
Specifically, if the associated level identifier set is {98,99,100,101,102}, the level data corresponding to the level identifier 100 is read when the level corresponding to the level identifier 100 is operated. When the level corresponding to the level identifier 101 is operated, the level data corresponding to the level identifier 101 is directly read from the operation memory. When the level corresponding to the level identifier 102 is operated, the level data corresponding to the level identifier 102 is directly read from the operation memory.
The embodiment of the application provides a data reading method, which comprises the following steps: acquiring a target level identification corresponding to a level to be operated; determining a related level identifier set by using the target level identifier; loading the level data corresponding to the associated level identification set into an operating memory; and reading the checkpoint data. Therefore, after the level corresponding to the target level identification is completed, when the level associated with the completed level is operated, the user does not need to wait for a long time, so that the problems of more time consumption and poor user experience in the level data reading process can be solved, and the technical effects of reducing the data reading time and improving the user experience are achieved.
In another embodiment of the present application, on the basis of the foregoing embodiments of step S101 to step S104, step S102 may include step S1021 to step S1025:
and S1021, judging whether the target level mark is the same as the initial level mark in the level mark sequence.
The checkpoint id sequences 1,2,3, …, and 998,999,1000 are used as examples for explanation. Then the initial level identification in the level identification sequence may be 1.
S1022, if the target level identifier is the same as the initial level identifier, determining, in the level identifier sequence, a beginning part including a first preset number of level identifiers as the associated level identifier set.
Wherein the value of the first preset number may be set according to actual requirements. The first predetermined number is equal to 5 for example. Then, the associated set of level identifiers in step S1022 may be {1,2,3,4,5 }.
S1023, if the target level mark is different from the initial level mark, judging whether the target level mark is the same as the last level mark in the level mark sequence.
If the checkpoint identification sequence is 1,2,3, …,998,999,1000, the last checkpoint identification may be 1000.
And S1024, if the target level mark is the same as the last level mark, determining the last part including a second preset number of level marks as the associated level mark set in the level mark sequence.
Wherein the value of the second preset number may be set according to actual requirements. The first predetermined number may be equal to the second predetermined number, and the first predetermined number may be unequal to the second predetermined number. The second predetermined number is equal to 10 for example. Then the set of associated level identifications in step S1024 may be {991,992,993,994,995,996,997,998,999,1000 }.
And S1025, if the target level mark is different from the last level mark, determining a sequence part which comprises a third preset number of level marks and comprises the target level mark as the associated level mark set in the level mark sequence.
Wherein the value of the third preset number may be set according to actual requirements. The third predetermined number may have a value equal to the first predetermined number, or the third predetermined number may have a value not equal to the first predetermined number. The third predetermined number may be equal to the second predetermined number, and the third predetermined number may be unequal to the second predetermined number. The third preset number is equal to 11 and the target level id is 100. Then, the set of associated level identifiers in step S1025 may be {95,96,97,98,99,100,101,102,103,104,105}, or the set of associated level identifiers in step S1025 may be {97,98,99,100,101,102,103,104,105,106,107}, or the set of associated level identifiers in step S1025 may be {94,95,96,97,98,99,100,101,102,103,104 }.
In the embodiment of the application, the values of the first preset quantity, the second preset quantity and the third preset quantity can be respectively set according to actual requirements, so that the obtained associated level identification set can better meet the requirements of players, and the user experience is improved.
In another embodiment of the present application, on the basis of the foregoing embodiments of step S101 to step S104, step S103 may include step S1031 to step S1035:
and S1031, obtaining the total storage space of the operation memory.
The total storage space is 2G for example.
S1032, determining the loadable memory space according to the total memory space.
Specifically, the loadable memory space may be determined using the preset allocation coefficient and the total memory space. Wherein the preset distribution coefficient is epsilon (0, 1). And multiplying the total storage space by a preset distribution coefficient to obtain a loadable storage space by calculation. For example, the preset partition coefficient may be 0.5. If the total storage space is 2G, then the loadable storage space may be 1G.
And S1033, determining a preloading storage space for storing the level data corresponding to the associated level identification set.
Specifically, the preloaded storage space may be determined by using a correspondence between the level data identifier and the storage space. Taking the example of the associated set of level identifiers as {95,96,97,98,99,100,101,102,103,104,105}, the correspondence between the level data identifiers and the storage space can be as shown in table 1.
TABLE 1
Figure BDA0001931304200000141
Figure BDA0001931304200000151
Then, the preload storage space is a + b + c + d + e + f + g + h + i + j + k.
S1034, if the preloading storage space is less than or equal to the loadable storage space, loading the level data corresponding to the associated level identifier set into the operating memory.
S1035, if the preloading storage space is greater than the loadable storage space, determining a loadable level identifier set by using the associated level identifier set, and loading level data corresponding to the loadable level identifier set into the operating memory.
Wherein the determining a loadable level identifier set by using the associated level identifier set may include steps S11 to S13:
and S11, removing the minimum level mark and the maximum level mark in the associated level mark set to obtain an associated level mark subset.
If the associated level identifier set is {95,96,97,98,99,100,101,102,103,104,105}, then the minimum level identifier in the associated level identifier set is 95, the maximum level identifier in the associated level identifier set is 105, and the associated level identifier subset is {96,97,98,99,100,101,102,103,104 }.
And S12, determining an adjustment loading storage space for storing the level data corresponding to the associated level identifier subset.
And determining to adjust the loading storage space by utilizing the corresponding relation between the level data identifier and the storage space. Taking the example of associating the sub-set of the level identifiers as {96,97,98,99,100,101,102,103,104}, the correspondence between the level data identifiers and the storage space can be as shown in table 2.
TABLE 2
Level mark Level data identification Storage space
96 B b
97 C c
98 D d
99 E e
100 F f
101 G g
102 H h
103 I i
104 J j
Then the adjusted load store space corresponding to the associated level identifier subset {96,97,98,99,100,101,102,103,104}, b + c + d + e + f + g + h + i + j.
S13, if the adjusted load storage space is less than or equal to the loadable storage space, determining the associated level identifier subset as the loadable level identifier set.
In another embodiment of the present application, based on the foregoing embodiments of step S101 to step S104, the data reading may further include step S21 to step S28:
and S21, acquiring the updated level mark corresponding to the level to be operated after the level corresponding to the target level mark starts to operate.
For example, if the target level id is 100, the update level id may be 101. If the target level identity is 1, the update level identity may be 2.
And S22, determining an updated level identifier set by using the updated level identifier.
For example, if the update level identifier is 2, the updated level identifier set may be {2,3,4,5,6 }. If the updated level identification is 101, the updated level identification set may be 96,97,98,99,100,101,102,103,104,105,106, or the updated level identification set may be 98,99,100,101,102,103,104,105,106,107,108, or the updated level identification set may be 95,96,97,98,99,100,101,102,103,104, 105.
S23, searching the level identifiers in the updated level identifier set and the associated level identifier set to obtain the same level identifier set.
Wherein, if the associated set of level identifiers is {95,96,97,98,99,100,101,102,103,104,105}, and the updated set of level identifiers is {96,97,98,99,100,101,102,103,104,105,106}, the same set of level identifiers may be {96,97,98,99,100,101,102,103,104,105 }.
And S24, subtracting the same level identifier set from the updated level identifier set to obtain a first level identifier difference set.
If the updated set of level identifiers is {96,97,98,99,100,101,102,103,104,105,106}, and the same set of level identifiers is {96,97,98,99,100,101,102,103,104,105}, the first level identifier difference set can be {106 }.
And S25, loading the level data corresponding to the first level identification difference set into the operating memory.
And S26, subtracting the same level identifier set from the associated level identifier set to obtain a second level identifier difference set.
Wherein, if the associated set of level identifiers is {95,96,97,98,99,100,101,102,103,104,105}, and the same set of level identifiers is {96,97,98,99,100,101,102,103,104,105}, the second set of level identifier differences may be {95 }.
And S27, deleting the level data corresponding to the second level identification difference set from the operating memory.
And S28, reading the level data corresponding to the first level identification difference set.
In another embodiment of the present application, based on the foregoing embodiments of step S1021 to step S1025, the data reading may further include step S31 to step S38:
and S31, acquiring the updated level mark corresponding to the level to be operated after the level corresponding to the target level mark starts to operate.
The level to be run in step S31 may be a level selected by the player and associated with the target level. For example, if the target level id is 100, the update level id may be 103.
And S32, determining an updated level identifier set by using the updated level identifier.
For example, if the updated level identifier is 103, then the updated level identifier set may be {98,99,100,101,102,103,104,105,106,107,108 }.
S33, searching the level identifiers in the updated level identifier set and the associated level identifier set to obtain the same level identifier set.
Illustratively, if the updated set of level identifiers is {98,99,100,101,102,103,104,105,106,107,108} and the associated set of level identifiers is {95,96,97,98,99,100,101,102,103,104,105}, then the same set of level identifiers may be {98,99,100,101,102,103,104,105 }.
And S34, subtracting the same level identifier set from the updated level identifier set to obtain a first level identifier difference set.
Wherein, if the updated set of level identifiers is {98,99,100,101,102,103,104,105,106,107,108}, and the same set of level identifiers is {98,99,100,101,102,103,104,105}, the first set of level identifier differences may be {106,107,108 }.
And S35, loading the level data corresponding to the first level identification difference set into the operating memory.
And S36, subtracting the same level identifier set from the associated level identifier set to obtain a second level identifier difference set.
Wherein, if the associated set of level identifiers is {95,96,97,98,99,100,101,102,103,104,105}, and the same set of level identifiers is {98,99,100,101,102,103,104,105}, the second set of level identifier differences may be {95,96,97 }.
And S37, deleting the level data corresponding to the second level identification difference set from the operating memory.
And S38, reading the level data corresponding to the first level identification difference set.
In another embodiment of the present application, on the basis of the foregoing embodiments of steps S1031 to S1035, the data reading may further include steps S41 to S48:
and S41, acquiring the updated level mark corresponding to the level to be operated after the level corresponding to the target level mark starts to operate.
And S42, determining an updated level identifier set by using the updated level identifier.
S43, searching the level identifiers in the updated level identifier set and the associated level identifier set to obtain the same level identifier set.
And S44, subtracting the same level identifier set from the updated level identifier set to obtain a first level identifier difference set.
And S45, loading the level data corresponding to the first level identification difference set into the operating memory.
And S46, subtracting the same level identifier set from the associated level identifier set to obtain a second level identifier difference set.
And S47, deleting the level data corresponding to the second level identification difference set from the operating memory.
And S48, reading the level data corresponding to the first level identification difference set.
In yet another embodiment of the present application, based on the aforementioned embodiments of step S11 to step S13, the data reading may further include step S51 to step S58:
and S51, acquiring the updated level mark corresponding to the level to be operated after the level corresponding to the target level mark starts to operate.
And S52, determining an updated level identifier set by using the updated level identifier.
S53, searching the level identifiers in the updated level identifier set and the associated level identifier set to obtain the same level identifier set.
And S54, subtracting the same level identifier set from the updated level identifier set to obtain a first level identifier difference set.
And S55, loading the level data corresponding to the first level identification difference set into the operating memory.
And S56, subtracting the same level identifier set from the associated level identifier set to obtain a second level identifier difference set.
And S57, deleting the level data corresponding to the second level identification difference set from the operating memory.
And S58, reading the level data corresponding to the first level identification difference set.
In another embodiment of the present application, a data reading apparatus in the embodiments of the present application is described in detail, and as shown in fig. 3, the data reading apparatus may include: an acquisition module 31, a determination module 32, a loading module 33 and a reading module 34.
The obtaining module 31 is configured to obtain a target level identifier corresponding to a level to be operated.
The determining module 32 is configured to determine an associated level identifier set by using the target level identifier.
The loading module 33 is configured to load the level data corresponding to the associated level identifier set into an operating memory.
The reading module 34 is configured to read the level data.
In another embodiment of the present application, a data reading apparatus in the embodiment of the present application is described in detail, and as shown in fig. 4, the data reading apparatus includes: a processor 401, a memory 402, a communication interface 403, and a bus 404.
The processor 401, the memory 402 and the communication interface 403 complete communication with each other through the bus 404.
The communication interface 403 is used for information transmission between external devices.
Illustratively, the external device may be a user equipment UE.
The processor 401 is configured to call program instructions in the memory 402 to perform the steps of the data reading method according to any one of the embodiments.
Specifically, the processor 401 is configured to execute the data reading program to implement the following steps: acquiring a target level identification corresponding to a level to be operated; determining a related level identifier set by using the target level identifier; loading the level data corresponding to the associated level identification set into an operating memory; and reading the checkpoint data.
In a further embodiment of the present application, a computer-readable storage medium in an embodiment of the present application is described in detail, which stores computer instructions that cause the computer to perform the steps of the data reading method according to any one of the above embodiments.
The computer-readable storage medium may store one or more computer instructions. The computer-readable storage medium may include volatile memory, such as random access memory; the computer-readable storage medium may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the computer readable storage medium may also include a combination of memories of the above kinds.
Specifically, the computer instructions cause the computer to perform the steps of: acquiring a target level identification corresponding to a level to be operated; determining a related level identifier set by using the target level identifier; loading the level data corresponding to the associated level identification set into an operating memory; and reading the checkpoint data.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or make a contribution to the prior art, or may be implemented in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A data reading method, comprising:
acquiring a target level identification corresponding to a level to be operated;
determining a related level identifier set by using the target level identifier;
loading the level data corresponding to the associated level identification set into an operating memory;
reading the checkpoint data;
after the level corresponding to the target level identification starts to operate, acquiring an updated level identification corresponding to the level to be operated;
determining an updated level identifier set by using the updated level identifier;
searching for the same level mark in the updated level mark set and the associated level mark set to obtain the same level mark set;
subtracting the same level identifier set from the updated level identifier set to obtain a first level identifier difference set;
and loading the level data corresponding to the first level identification difference set into the operating memory.
2. The method of claim 1, wherein the determining a set of associated level identifiers using the target level identifier comprises:
judging whether the target level mark is the same as the initial level mark in the level mark sequence or not;
if the target level mark is the same as the initial level mark, determining the initial part including a first preset number of level marks as the associated level mark set in the level mark sequence;
if the target level mark is different from the initial level mark, judging whether the target level mark is the same as the last level mark in the level mark sequence;
if the target level mark is the same as the last level mark, determining the last part including a second preset number of level marks as the associated level mark set in the level mark sequence;
and if the target level mark is different from the last level mark, determining a sequence part which comprises a third preset number of level marks and comprises the target level mark as the associated level mark set in the level mark sequence.
3. The method according to claim 1, wherein the loading the level data corresponding to the associated level identifier set into a run-time memory comprises:
acquiring the total storage space of the operating memory;
determining a loadable memory space according to the total memory space;
determining a pre-loading storage space for storing the level data corresponding to the associated level identification set;
if the preloading storage space is smaller than or equal to the loadable storage space, loading the level data corresponding to the associated level identification set into the operating memory;
and if the preloading storage space is larger than the loadable storage space, determining a loadable level identification set by using the associated level identification set, and loading level data corresponding to the loadable level identification set into the operating memory.
4. The method of claim 3, wherein determining the set of loadable level identifiers using the set of associated level identifiers comprises:
removing the minimum level mark and the maximum level mark in the associated level mark set to obtain an associated level mark subset;
determining an adjustment loading storage space for storing the level data corresponding to the associated level identifier subset;
and if the adjusted load storage space is less than or equal to the loadable storage space, determining the associated level identifier subset as the loadable level identifier set.
5. The method of claim 1, further comprising:
subtracting the same level identification set from the associated level identification set to obtain a second level identification difference set;
and deleting the level data corresponding to the second level identification difference set from the operating memory.
6. The method of claim 5, further comprising:
and reading the level data corresponding to the first level identification difference set.
7. A data reading apparatus, comprising: the device comprises an acquisition module, a determination module, a loading module and a reading module;
the acquisition module is used for acquiring a target level mark corresponding to a level to be operated;
the determining module is used for determining a relevant level identifier set by using the target level identifier;
the loading module is used for loading the level data corresponding to the associated level identifier set into an operating memory;
the reading module is used for reading the checkpoint data;
the data reading device is further configured to, after the level corresponding to the target level identifier starts to operate, acquire an updated level identifier corresponding to a level to be operated, determine an updated level identifier set by using the updated level identifier, search for the level identifier in the updated level identifier set and the level identifier in the associated level identifier set, obtain the same level identifier set, subtract the same level identifier set from the updated level identifier set, obtain a first level identifier difference set, and load level data corresponding to the first level identifier difference set into the operation memory.
8. A data reading apparatus, characterized by comprising: a processor, a memory, a communication interface, and a bus;
the processor, the memory and the communication interface complete mutual communication through the bus;
the communication interface is used for information transmission between external devices;
the processor is configured to invoke program instructions in the memory to perform the steps of the method of any of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201811641933.3A 2018-12-29 2018-12-29 Data reading method, device, equipment and storage medium Expired - Fee Related CN109889656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811641933.3A CN109889656B (en) 2018-12-29 2018-12-29 Data reading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811641933.3A CN109889656B (en) 2018-12-29 2018-12-29 Data reading method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109889656A CN109889656A (en) 2019-06-14
CN109889656B true CN109889656B (en) 2021-04-20

Family

ID=66925515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811641933.3A Expired - Fee Related CN109889656B (en) 2018-12-29 2018-12-29 Data reading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109889656B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427853A (en) * 2020-03-23 2020-07-17 腾讯科技(深圳)有限公司 Data loading method and related device
CN112717386B (en) * 2021-01-21 2023-05-12 腾讯科技(深圳)有限公司 Method, device, equipment and medium for displaying checkpoint picture

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399691A (en) * 2008-10-21 2009-04-01 北京闪联互动网络科技有限责任公司 Multimedia on-line playing method, device for mobile terminal and mobile terminal thereof
CN102663096A (en) * 2012-04-11 2012-09-12 北京像素软件科技股份有限公司 Method for reading data based on data cache technology
CN103457960A (en) * 2012-05-15 2013-12-18 腾讯科技(深圳)有限公司 Method and system for loading file in webpage game
CN107423015A (en) * 2017-07-24 2017-12-01 腾讯科技(深圳)有限公司 The synchronous display method and device of game content

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314334A (en) * 2010-06-30 2012-01-11 百度在线网络技术(北京)有限公司 Method for caching content input into application program by user and equipment
CN102446222B (en) * 2011-12-22 2014-12-10 华为技术有限公司 Method, device and system of webpage content preloading
CN104065637B (en) * 2013-07-10 2015-07-01 腾讯科技(深圳)有限公司 Web-game running method and device
US9588897B2 (en) * 2013-07-19 2017-03-07 Samsung Electronics Co., Ltd. Adaptive application caching for mobile devices
JP5849268B1 (en) * 2014-07-04 2016-01-27 株式会社アクセル Read transfer control method and auxiliary storage device controller
CN105897815A (en) * 2015-08-12 2016-08-24 乐视云计算有限公司 Data reading method and data reading network side device
CN108228270B (en) * 2016-12-19 2021-04-16 腾讯科技(深圳)有限公司 Starting resource loading method and device
CN107239306A (en) * 2017-05-26 2017-10-10 黄晓咏 One kind game communication data processing system
CN107341032B (en) * 2017-06-23 2020-12-18 广东源泉科技有限公司 Data loading method, mobile terminal and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399691A (en) * 2008-10-21 2009-04-01 北京闪联互动网络科技有限责任公司 Multimedia on-line playing method, device for mobile terminal and mobile terminal thereof
CN102663096A (en) * 2012-04-11 2012-09-12 北京像素软件科技股份有限公司 Method for reading data based on data cache technology
CN103457960A (en) * 2012-05-15 2013-12-18 腾讯科技(深圳)有限公司 Method and system for loading file in webpage game
CN107423015A (en) * 2017-07-24 2017-12-01 腾讯科技(深圳)有限公司 The synchronous display method and device of game content

Also Published As

Publication number Publication date
CN109889656A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN106530241B (en) Image blurring processing method and device
US9622056B2 (en) Mobile terminal and controlling method thereof for extracting available personal information corresponding to recognized faces
CN106547886B (en) Application program recommendation method and device, terminal and server
US8434112B2 (en) Method for updating broadcasting program information in terminal and mobile terminal using the same
US11064063B2 (en) Mobile terminal and controlling method thereof
KR20090087235A (en) Terminal and method of controlling broadcasting therein
CN107038074B (en) Memory optimization device and method based on association strategy
CN106550124B (en) Application pre-installation method and terminal
CN109819106B (en) Double-sided screen multitask execution method, mobile terminal and computer readable storage medium
CN106778176B (en) Information processing method and mobile terminal
CN110109528B (en) Application program control method, mobile terminal and computer readable storage medium
CN106686232B (en) Control interface optimization method and mobile terminal
CN106527799B (en) Method and device for preventing key from being misoperated
CN106302651A (en) The social sharing method of picture and there is the terminal of picture social activity share system
CN106598538B (en) Instruction set updating method and system
CN109889656B (en) Data reading method, device, equipment and storage medium
CN105704331B (en) Application program recommendation method and system of mobile terminal
CN107241497B (en) Mobile terminal and loudness output adjusting method
CN105791588A (en) Mobile terminal desktop setting device and mobile terminal desktop setting method
CN107027113B (en) SIM card activation method and mobile terminal
CN109165487B (en) Face unlocking method, mobile terminal and computer readable storage medium
CN106791217B (en) Image management optimization method of mobile terminal and mobile terminal
CN106713757B (en) Shooting control method and mobile terminal
CN109120857B (en) Shooting control method and device and computer readable storage medium
CN106791413B (en) Image acquisition device and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20201030

Address after: 9 / F, TCL multimedia building, D4 building, international e city, 1001 Zhongshan Garden Road, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: SHENZHEN TCL NEW TECHNOLOGY Co.,Ltd.

Address before: 518052 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Applicant before: SHENZHEN HAWK INTERNET Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210420

Termination date: 20211229

CF01 Termination of patent right due to non-payment of annual fee