CN107198884A - A kind of method that scene of game is efficiently loaded into - Google Patents
A kind of method that scene of game is efficiently loaded into Download PDFInfo
- Publication number
- CN107198884A CN107198884A CN201710385228.0A CN201710385228A CN107198884A CN 107198884 A CN107198884 A CN 107198884A CN 201710385228 A CN201710385228 A CN 201710385228A CN 107198884 A CN107198884 A CN 107198884A
- Authority
- CN
- China
- Prior art keywords
- game
- player
- scene
- client
- map
- 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.)
- Granted
Links
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/60—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
- A63F13/63—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor by the player, e.g. authoring using a level editor
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
- A63F13/56—Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
- A63F13/58—Controlling game characters or game objects based on the game progress by computing conditions of game characters, e.g. stamina, strength, motivation or energy level
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention discloses a kind of method that scene of game is efficiently loaded into, according to coordinate of the player in scene of game, extrapolate scene entrance hiding nearby, logic reckoning is carried out further according to the movement locus of player, extrapolate the scene that player will enter, and the result calculated by logic loads map resource in advance, the present invention is referred to as algorithm;Being obtained according to player for task extrapolates the scene that player will go to, and this reasoning from logic result is fed back into game client, and game client carries out map resource loading in advance, and the present invention is referred to as embedded method;Embedded method can be carried out on the basis of algorithm.Game terminal is calculated by the logic to player's real-time coordinates, and then map is loaded in advance, is effectively saved the stand-by period of loading map, is improved the fluency of game;Meanwhile, game terminal carries out logical calculated to the Mission Objective of player, fulfils the loading to map ahead of schedule, improves game efficiency.
Description
Technical field
The present invention relates to field of network game, the method that specifically a kind of scene of game is efficiently loaded into.
Background technology
When loading resource from storage medium in general game, when the file sentence that there is heap file in operating system
Handle, the speed of service of operating system will become very slow.In order to optimize, many game all can only be from the resource text of packing
Required resource is loaded in part.Resource files of these packings are exactly document data bank large-scale one by one, with single file or
The form of one group of file is existed.In these databases, an all in store complete TOC level information.Resource file has
Solve the problem of file handle expense is excessive to effect.But the problem of another is serious is brought again.These resource files
Order be generally exactly the bibliographic structure on hard disk a mirror image.And game seldom can be according to resource file in bibliographic structure
Order access them.On the contrary, in most cases, they all can access resource file great-jump-forward in resource file.This
Just into a main bottleneck.If the data set used of playing is very big, then present in the layout of its resource file
This weakness will be exposed so that the resource load progress of game is very slow, especially the loading speed mistake of scene of game
Slowly, the game experiencing of player has been had a strong impact on.
The content of the invention
To solve the problem of game game scenario is loaded into slow, the present invention provides the side that a kind of scene of game is efficiently loaded into
Method.
The purpose of the present invention can be achieved through the following technical solutions:
A kind of method that scene of game is efficiently loaded into, according to coordinate of the player in scene of game, extrapolates and nearby hides
Scene entrance, carry out logic reckoning further according to the movement locus of player, extrapolate the scene that player will enter, and by patrolling
Collect the result calculated and load map resource in advance, the present invention is referred to as algorithm;Being obtained according to player for task extrapolates player
The scene that will be gone to, and this reasoning from logic result is fed back into game client, game client carries out map resource in advance
Loading, the present invention is referred to as embedded method, and embedded method can be carried out on the basis of algorithm.
The step of algorithm is:
S1:Client terminal start-up;
S2:Coordinate unit uploads player's coordinate;
S3:Data processing module carries out data processing;
S4:Game terminal carries out logical calculated;
Embedding method step is:
S5:Whether player has unfinished Mission Objective;
S6:Whether other maps are related in task;
S7:Client loads map datum.
It is not all map scenes in loading game when client carries out resource loading on startup in the step S1
Resource:When player is in game over, the coordinate unit in game preserves coordinate position of player when offline to game eventually
End, player is when logging in game next time, and game terminal is instructed to coordinate of client transmission player when offline, and game client is only
Can load player it is offline in gaming when where map scene, can so improve the loading speed of client.
Coordinate unit is monitored in real time to the position of player in gaming in the step S2, and by player's real-time coordinates
It is uploaded to data processing module.
Coordinate is marked data processing module in the step S3, and by the data and data terminal after mark
Comparison is marked in all data, and mark compares principle and is:Arbitrary coordinate in certain region can be labeled as same point, mark
Coordinate afterwards is expressed as specific mark point, and calculating is compared using the data in the mark point and database, so as to reduce
The amount of calculation of data processing module;Result after being compared according to database, can count the scene entrance in coordinate range;Number
The data after processing are uploaded to game terminal according to processing module.
The step S4 game terminals proceed by logical calculated after receiving the data of data processing module upload, swim
Terminal of playing determines the map that player may go according to factors such as the existing grade of player, operational efficiency and movement locus
Scape, and the result after determination is fed back into game client, the result that game client feeds back according to game terminal starts in advance
Load map.
If player has unfinished task in the step S5, into S6;If the task that player does not complete,
Game terminal logical calculated enters algorithm.
If being not involved with other scenes in the step S6 in task, game terminal logical calculated enters algorithm;
If being related to other scene of game in task, game terminal feeds back to game client.
The data that game client feeds back according to game terminal in the step S7, carry out map loading, meanwhile, game visitor
Family end sends information to player, reminds player to have task not yet to complete, if preceding to go to complete.
Brief description of the drawings
The present invention is further illustrated below in conjunction with the accompanying drawings.
Fig. 1 is algorithm schematic flow sheet in the present invention;
Fig. 2 is embedded method logical calculated flow chart in the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is all other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
A kind of method that scene of game is efficiently loaded into, its principle is the coordinate in scene of game according to player, calculates
Go out nearby the scene entrance hidden, carry out logic reckoning further according to the movement locus of player, extrapolate the field that player will enter
Scape, and the result calculated according to logic shifts to an earlier date loading scenario resource;The principle of another loading scene of game resource is according to object for appreciation
The task that family obtains extrapolates the scene that player will go to, and this reasoning from logic result is fed back into game client, plays
Client carries out scenario resources loading in advance, and the present invention is referred to as algorithm.
Embodiment 1
Fig. 1 is shown carries out the flow that scenario resources are loaded in advance according to the coordinate of player in gaming.
S1:Client terminal start-up;
Wherein, client, when being actuated for resource loading, is not the resource of all map scenes in loading game:Play
Family is in game over, and the coordinate unit in game preserves coordinate position of player when offline to game terminal, and player is under
During secondary login game, game terminal is instructed to coordinate of client transmission player when offline, and game client can only load player
Map scene where when offline in gaming, just can so improve the loading speed of client.
S2:Coordinate unit uploads player's coordinate;
Wherein, coordinate unit is monitored in real time to the position of player in gaming, and player's real-time coordinates are uploaded to
Data processing module.
S3:Data processing module carries out data processing;
Wherein, coordinate is marked data processing module, and by all numbers in the data and data terminal after mark
According to comparison is marked, mark compares principle and is:Arbitrary coordinate in certain region can be labeled as the seat after same point, mark
Mark is expressed as specific mark point, calculating is compared using the data in the mark point and database, so as to reduce at data
Manage the amount of calculation of module;Result after being compared according to database, can count the scene entrance in coordinate range;Data processing
Data after processing are uploaded to game terminal by module.
S4:Game terminal carries out logical calculated;
Wherein, game terminal proceeds by logical calculated, game terminal after receiving the data of data processing module upload
According to factors such as the existing grade of player, operational efficiency and movement locus, the map scene that player may go is determined, and will
It is determined that after result feed back to game client, the result that game client feeds back according to game terminal starts pre-loadedly
Figure.
Described in comprehensive S1-S4, game terminal is calculated by the logic to player's real-time coordinates, and then map is carried out in advance
Loading, is effectively saved the stand-by period of loading map, improves the fluency of game.
On the basis of based on embodiment 1, it is proposed that another embodiment.
Embodiment 2
The scene that this embodiment is related to according to the existing Mission Objective of player, and then in advance in loading Mission Objective,
The present invention is referred to as embedded method, is illustrated in figure 2 embedded method logical calculated process.
S5:Whether player has unfinished Mission Objective;
Wherein, if player has unfinished task, into S6;If the task that player does not complete, game is eventually
Logical calculated is held to enter in embodiment 1.
S6:Whether other maps are related in task;
Wherein, if being not involved with other scenes in task, game terminal logical calculated enters in embodiment 1;If
It is related to other scene of game in task, game terminal feeds back to game client.
S7:Client loads map;
Wherein, the data that game client feeds back according to game terminal, carry out map loading, meanwhile, game client to
Player sends information, reminds player to have task not yet to complete, if preceding to go to complete.
Embedded method combines algorithm by being loaded in advance to the map being related in player task, improves
The loading velocity of game so that game overall experience gets a promotion.
Above content is only to structure example of the present invention and explanation, affiliated those skilled in the art couple
Described specific embodiment is made various modifications or supplement or substituted using similar mode, without departing from invention
Structure surmounts scope defined in the claims, all should belong to protection scope of the present invention.
Claims (8)
1. a kind of method that scene of game is efficiently loaded into, it is characterised in that:
According to coordinate of the player in scene of game, scene entrance hiding nearby is extrapolated, further according to the movement locus of player
Logic reckoning is carried out, the scene that player will enter is extrapolated, and the result calculated by logic loads map resource in advance, this
Invention is referred to as algorithm;
Being obtained according to player for task extrapolates the scene that player will go to, and this reasoning from logic result is fed back into game visitor
Family end, game client carries out map resource loading in advance, and the present invention is referred to as embedded method;
Embedded method can be carried out on the basis of algorithm;
The step of algorithm is:
S1:Client terminal start-up;
S2:Coordinate unit uploads player's coordinate;
S3:Data processing module carries out data processing;
S4:Game terminal carries out logical calculated;
Embedding method step is:
S5:Whether player has unfinished Mission Objective;
S6:Whether other maps are related in task;
S7:Client loads map datum.
2. the method that a kind of scene of game according to claim 1 is efficiently loaded into, it is characterised in that objective in the step S1
It is not the resource of all map scenes in loading game when family end carries out resource loading on startup:When player ties in game
Coordinate unit in Shu Shi, game preserves coordinate position of player when offline to game terminal, and player logs in game in next time
When, game terminal to client send player it is offline when coordinate instruct, game client can only load player in gaming from
Map scene where during line, can so improve the loading speed of client.
3. the method that a kind of scene of game according to claim 1 is efficiently loaded into, it is characterised in that sat in the step S2
Mark unit is monitored in real time to the position of player in gaming, and player's real-time coordinates are uploaded into data processing module.
4. the method that a kind of scene of game according to claim 1 is efficiently loaded into, it is characterised in that number in the step S3
Coordinate is marked according to processing module, and comparison is marked in all data in the data and data terminal after mark,
Mark compares principle and is:The coordinate that arbitrary coordinate in certain region can be labeled as after same point, mark is expressed as specifically
Mark point, calculating is compared using the data in the mark point and database, so as to reduce the amount of calculation of data processing module;
Result after being compared according to database, can count the scene entrance in coordinate range;Data processing module is by after processing
Data are uploaded to game terminal.
5. the method that a kind of scene of game according to claim 1 is efficiently loaded into, it is characterised in that the step S4 middle reaches
Play terminal proceeds by logical calculated after receiving the data of data processing module upload, and game terminal is existing etc. according to player
The factors such as level, operational efficiency and movement locus, determine the map scene that player may go, and the result after determination is fed back
To game client, the result that game client feeds back according to game terminal starts pre-loaded map.
6. the method that a kind of scene of game according to claim 1 is efficiently loaded into, it is characterised in that if in the step S5
Player has unfinished task, then into S6;If the task that player does not complete, game terminal logical calculated, which enters, to be drilled
Algorithm.
7. the method that a kind of scene of game according to claim 1 is efficiently loaded into, it is characterised in that if in the step S6
Other scenes are not involved with task, then game terminal logical calculated enters algorithm;If being related to other game in task
Scene, game terminal feeds back to game client.
8. the method that a kind of scene of game according to claim 1 is efficiently loaded into, it is characterised in that the step S7 middle reaches
The data that play client is fed back according to game terminal, carry out map loading, meanwhile, game client sends information to player, carries
Awake player has task not yet to complete, if preceding to go to complete.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710385228.0A CN107198884B (en) | 2017-05-26 | 2017-05-26 | Method for efficiently loading game scenes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710385228.0A CN107198884B (en) | 2017-05-26 | 2017-05-26 | Method for efficiently loading game scenes |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107198884A true CN107198884A (en) | 2017-09-26 |
CN107198884B CN107198884B (en) | 2021-05-11 |
Family
ID=59905840
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710385228.0A Active CN107198884B (en) | 2017-05-26 | 2017-05-26 | Method for efficiently loading game scenes |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107198884B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109925718A (en) * | 2019-01-14 | 2019-06-25 | 珠海金山网络游戏科技有限公司 | A kind of system and method for distributing the micro- end map of game |
CN110908736A (en) * | 2019-11-26 | 2020-03-24 | 广东趣炫网络股份有限公司 | 3D scene loading method, device, equipment and storage medium |
CN111064712A (en) * | 2019-11-29 | 2020-04-24 | 珠海金山网络游戏科技有限公司 | Game resource packaging method and system |
CN111729305A (en) * | 2020-06-23 | 2020-10-02 | 网易(杭州)网络有限公司 | Map scene preloading method, model training method, device and storage medium |
CN113368497A (en) * | 2021-05-20 | 2021-09-10 | 广州三七互娱科技有限公司 | Weather particle rendering method and device and electronic equipment |
CN114356566A (en) * | 2021-12-30 | 2022-04-15 | 许磊 | Game data streaming media method based on correlation |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1924873A (en) * | 2006-09-19 | 2007-03-07 | 北京金山数字娱乐科技有限公司 | Game map storage method and device, display method and system |
US20130253675A1 (en) * | 2012-03-22 | 2013-09-26 | Empire Technology Development Llc | Load balancing for game |
CN103729558A (en) * | 2013-12-26 | 2014-04-16 | 北京像素软件科技股份有限公司 | Scene change method |
CN105025061A (en) * | 2014-04-29 | 2015-11-04 | 中国电信股份有限公司 | Method and server for constructing cloud-end shared game scene |
-
2017
- 2017-05-26 CN CN201710385228.0A patent/CN107198884B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1924873A (en) * | 2006-09-19 | 2007-03-07 | 北京金山数字娱乐科技有限公司 | Game map storage method and device, display method and system |
US20130253675A1 (en) * | 2012-03-22 | 2013-09-26 | Empire Technology Development Llc | Load balancing for game |
CN103729558A (en) * | 2013-12-26 | 2014-04-16 | 北京像素软件科技股份有限公司 | Scene change method |
CN105025061A (en) * | 2014-04-29 | 2015-11-04 | 中国电信股份有限公司 | Method and server for constructing cloud-end shared game scene |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109925718A (en) * | 2019-01-14 | 2019-06-25 | 珠海金山网络游戏科技有限公司 | A kind of system and method for distributing the micro- end map of game |
CN110908736A (en) * | 2019-11-26 | 2020-03-24 | 广东趣炫网络股份有限公司 | 3D scene loading method, device, equipment and storage medium |
CN111064712A (en) * | 2019-11-29 | 2020-04-24 | 珠海金山网络游戏科技有限公司 | Game resource packaging method and system |
CN111064712B (en) * | 2019-11-29 | 2022-03-18 | 珠海金山网络游戏科技有限公司 | Game resource packaging method and system |
CN111729305A (en) * | 2020-06-23 | 2020-10-02 | 网易(杭州)网络有限公司 | Map scene preloading method, model training method, device and storage medium |
CN111729305B (en) * | 2020-06-23 | 2024-02-09 | 网易(杭州)网络有限公司 | Map scene preloading method, model training method, device and storage medium |
CN113368497A (en) * | 2021-05-20 | 2021-09-10 | 广州三七互娱科技有限公司 | Weather particle rendering method and device and electronic equipment |
CN114356566A (en) * | 2021-12-30 | 2022-04-15 | 许磊 | Game data streaming media method based on correlation |
Also Published As
Publication number | Publication date |
---|---|
CN107198884B (en) | 2021-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107198884A (en) | A kind of method that scene of game is efficiently loaded into | |
US7537523B2 (en) | Dynamic player groups for interest management in multi-character virtual environments | |
CN103345496B (en) | multimedia information retrieval method and system | |
CN105468291B (en) | Dynamic and static wear balance control method and device | |
CN103617508A (en) | Configurable business rule plug-in extension apparatus and business rule plug-in extension method | |
CA2652503A1 (en) | Data updating system, terminal device, server, and method of data updating | |
CN101174225A (en) | Device and method for implementing message communication | |
CN102929697A (en) | State machine, scheduling method and device and universal serial bus (USB) media play control device | |
EP4000705A3 (en) | Method for providing game of conquering building by using global positioning system based on real map and server using the same | |
Muller | Decolonising engineering in South Africa-Experience to date and some emerging challenges | |
CN102314798B (en) | Method and device for automatically simplifying shape points of polygonal surface elements of electronic map | |
CN102902715B (en) | A kind of quick data processing method and device being applied to playback system | |
CN108460093A (en) | A kind of data processing method and device of public security system | |
CN109948803A (en) | Algorithm model optimization method, device and equipment | |
CN107330587B (en) | AIS-based near-shore channel water depth utilization rate calculation method | |
CN116860882B (en) | Cloud storage resource management and control method and system based on blockchain | |
CN114419758B (en) | Vehicle following distance calculation method and device, vehicle and storage medium | |
CN105128893A (en) | Method and system for generating train whole-course operation time information | |
CN105279069B (en) | A kind of target based on index matrix quickly alerts determination methods | |
CN104111879A (en) | Automatic program file online method and system | |
CN114426025A (en) | Driving assistance method, driving assistance device, computer equipment and storage medium | |
CN105137839B (en) | A kind of cloud platform control method and its system based on memory database | |
CN114722697A (en) | Method and device for determining control parameters of heading machine based on machine learning | |
CN113919549A (en) | Ship slip rate prediction system | |
CN109660576B (en) | User data real-time migration method, storage medium, electronic device and system |
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: 20210419 Address after: 221000 c742, Fudong Road East, Fuzhong Road South (Jiayuan building), Tongshan District, Xuzhou City, Jiangsu Province Applicant after: Xuzhou Tiancao Network Technology Co.,Ltd. Address before: 3, No. 230088, building 3, No. 10 software park, sky road, Hefei hi tech Zone, Anhui, G05 Applicant before: HEFEI CHONGYING INFORMATION TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |