CN203260032U - Webpage resource data real-time loading system - Google Patents

Webpage resource data real-time loading system Download PDF

Info

Publication number
CN203260032U
CN203260032U CN 201220377222 CN201220377222U CN203260032U CN 203260032 U CN203260032 U CN 203260032U CN 201220377222 CN201220377222 CN 201220377222 CN 201220377222 U CN201220377222 U CN 201220377222U CN 203260032 U CN203260032 U CN 203260032U
Authority
CN
China
Prior art keywords
resource
data
application layer
user
default
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 - Lifetime
Application number
CN 201220377222
Other languages
Chinese (zh)
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.)
Beijing Zeus Interactive Science & Technology Co Ltd
Original Assignee
Beijing Zeus Interactive Science & 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 Beijing Zeus Interactive Science & Technology Co Ltd filed Critical Beijing Zeus Interactive Science & Technology Co Ltd
Priority to CN 201220377222 priority Critical patent/CN203260032U/en
Application granted granted Critical
Publication of CN203260032U publication Critical patent/CN203260032U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The utility model relates to a webpage resource data real-time loading system which comprises a server and a user side. The webpage resource data real-time loading system is characterized in that the user side comprises a resource cache, a resource manager and an application layer, the resource cache, the resource manager and the application layer are mutually connected, the application layer inputs resource requests into the resource manager, and the resource manager looks up corresponding resource data in the resource cache according to the resource requests, and inputs the resource data into the application layer. If the resource data are not stored in the resource cache, a default resource is generated in the resource manager, the default resource is inputted into the application layer, meanwhile, the default resource is inputted into the resource cache, and then loading requests are inputted into the server. The server inputs the resource data into the resource cache, the resource data replace the default resource, and the resource data are inputted into the application layer. In the time quantum after the application layer sends out the resource requests to the resource manager and before the resource manager sends out the loading requests to the server, the resource manager generates the default resource, a user can conduct simple operations with the default resource, the default resource is returned to the application layer, and therefore the impatient emotion, generated by long-time wait, of the user is pacified.

Description

A kind of web page resources data real-time loading system
Technical field
The utility model relates to a kind of network data transmission field, is specifically related to a kind of web page resources data real-time loading system.
Background technology
Web game claims again the web game, is a kind of application program of utilizing the browser on-line operation, because it need not to download huge user side, does not also have the inadequate problem of machines configurations.And the closing and switch all extremely conveniently of this web game, the user can have the computer of online condition to use at any one whenever and wherever possible, therefore is widely used.
When opening web game, the user needs to establish a connection by browser and game server on computers, the scene of game with sound and light program of namely playing to the game server request of loading, and to game server transmission game instructions, so that game role is controlled.In order to make the user have vivid game experiencing, the capacity of the resource data that is used for the realization scene of game that the user need load before opening game is usually up to hundreds of MB, under the prerequisite that the network bandwidth is fixed, user's stand-by period is longer, and this game is destined to lose the user group so.Therefore, a web game large contradiction under development is exactly the user to the contradiction of the requirement of shortening the stand-by period and vivid game experiencing.
In order to solve this contradiction, make the user in use can enter more rapidly scene of game, existing web game loads has following dual mode: one, concentrated loading, the user all is loaded into all resource datas user's the computer from game server before logging in game, it is rear except switching map that the user enters game, no longer carries out the load operation of resource data; Its advantage is that after all resource data was loaded into browser, game can respond user's operation fast, immediately refreshes demonstration; Its shortcoming is, because the loading of the whole resource datas of row when wanting before the logging in game, user's wait chronic causes easily the user to lack patience and run off.Two, sub-module loading is namely divided module by function with resource data, by module packing compression, presses module loading when loading again; Its advantage is, only needs to load the resource data of login module before the login, has reduced most resource heap(ed) capacity, has shortened user's stand-by period before the login; Its shortcoming is, when the load operation of resource data has been placed on module initialization, after logining, the user needs equally to wait for for a long time, if and because the user during this period user side is carried out that processing ease occurs can not expected result, so the major applications program is the locking picture of forbidding that the user operates within the stand-by period, unfriendly to the user.
Summary of the invention
The utility model need not be waited for when having proposed a kind of log-on webpage game for the deficiencies in the prior art, to the web page resources data real-time loading system that user's operation can be accomplished summary responses, reaches the method for this system of realization.
The technical solution of the utility model is as follows:
A kind of web page resources data real-time loading system comprises server and user side, and it is characterized in that: described user side comprises interconnective caching resource, explorer and application layer; Described application layer is inputted described explorer with resource request, and described explorer is searched corresponding resource data according to described resource request in described caching resource, described resource data is inputted described application layer; If do not store described resource data in the described caching resource, generate a default resource in the described explorer, described default resource is inputted described application layer, simultaneously described default resource is inputted in the described caching resource, then load request is inputted described server; Described server is inputted described resource data in the described caching resource, and described resource data is replaced described default resource, and described resource data is inputted described application layer.
Described resource data comprises the image data with the ARGB channel data.
Comprise database and image compression processor in the described server, described database is inputted described image compression processor with resource data, the output squeezing data.
Described intermediate file content comprises: picture width, sum of all pixels, alpha passage file, RGB compressed file.
Described packed data is inputted described caching resource and is exported described resource data.
In the described explorer counter is set.
Technique effect of the present utility model is as follows:
A kind of web page resources data real-time loading of the present utility model system comprises server and user side, and it is characterized in that: user side comprises interconnective caching resource, explorer and application layer; Application layer is inputted explorer with resource request, and explorer is searched corresponding resource data according to resource request in caching resource, resource data is inputted application layer; If there is not resource data store in the caching resource, generate a default resource in the explorer, default resource is inputted application layer, simultaneously default resource is inputted in the caching resource, then load request is inputted server; Server is inputted resource data in the caching resource, and resource data is replaced default resource, and resource data is inputted application layer.Because after application layer is sent resource request to explorer, explorer is in this time period before sending load request to server, the default resource that user of explorer generation can carry out simple operations returns to application layer, to pacify the user because waiting as long for the impatience that produces, the user is still rested on the website of web game, avoided because wait for chronic, and cause the user for want of patient and run off.
Description of drawings
Fig. 1 is web page resources data real-time loading system architecture synoptic diagram of the present utility model
Fig. 2 is the schematic flow sheet that in the picture compression processor of the present utility model resource data is carried out second-compressed
Fig. 3 is the schematic flow sheet of the priority management of load request in the explorer of the present utility model
Fig. 4 is the schematic flow sheet of resource management in the explorer of the present utility model
Embodiment
Below in conjunction with accompanying drawing the utility model is described.
In the following description, describing some details wholely understands of the present utility model for the technician of computer realm provides.In an embodiment, show the element of realizing concrete function with the form of synoptic diagram or block diagram, so that outstanding technology emphasis, and can aspect unnecessary details, not blur the utility model.Such as, owing to contained about details disclosed in this areas such as network service, electromagnetic signal instruction technique, user interface or I/O technology, common-sense in those of ordinary skills' the understanding scope, thereby omitted to the full extent in an embodiment above-mentioned ins and outs, and do not think that these details are to obtain the necessary feature of the utility model complete skill scheme.
Such as those of ordinary skills' understanding scope as can be known, embodiment of the present utility model can be system, method or computer program, therefore, the utility model can be taked the form of complete hardware implementation example, complete implement software example (comprising computer firmware, resident software, microcode etc.), combination thereof embodiment, and the form of above-described embodiment can be summarised as respectively " module " or " system ".The utility model can adopt one or more computing machines can with or any combination of computer-readable medium, its Computer can with or computer-readable medium can be based on electronics, magnetic, light, electromagnetism, infrared or semi-conductive system, device, equipment or propagation medium etc.
As shown in Figure 1, take web game as example, a kind of web page resources data real-time loading of the present utility model system comprises game server 1, user side 2, wherein mainly comprise processor 11, game database 12 and picture compression processor 13 in the game server 1, user side 2 mainly comprises caching resource 21, explorer 22 and application layer 23.Wherein, processor 11 is used for reception from the load request of the resource data of the explorer 22 of user side 2, and game information corresponding to the account that reads user side 2, processor 11 is searched corresponding resource data according to load request and game information in game database 12.Game database 12 is used for storing the resource data of whole web game, comprises in image data, the game configuration informations such as role's scenario A I, and game database 12 is inputted resource data in the picture compression processor 13 and compressed.Picture compression processor 13 can carry out second-compressed to resource data, obtains the higher packed data of compressibility.Picture compression processor 13 decompresses the caching resource 21 that this packed data returns user side 2 as the rreturn value of load request, is reduced into resource data.
As shown in Figure 2, in the resource data that game server 1 loads to user side 2, image data is comprised of the pixel with the ARGB channel data, and each pixel is an ARGB(alpha, red, green, blue) look.The span of pixel value can be divided into alpha passage, red passage, green passage, blue passage from 0x00000000 to 0xFFFFFFFF, wherein the alpha passage is transparent channel, and the span of each passage is 0-255.In picture compression processor 13, the step of second-compressed is as follows:
1) at first from game database 12, reads resource data, then only keep image data, filter out alternative document, such as configuration informations such as role's scenario A I in the game;
2) image data is carried out the scanning of individual element, the alpha channel data of each pixel is separated from the ARGB channel data, the alpha channel data of all pixels is merged into alpha passage file;
The RGB channel data that 3) will be left all pixels is merged into RGB passage file, and adopts Huffman encoding that this RGB passage file is carried out lossy compression method, generates the RGB compressed file, and the picture quality of RGB compressed file can be adjusted according to demand;
4) with step 2) in RGB compressed file in isolated alpha passage file and the step 3) merge in the intermediate file with binary form; The content of this intermediate file comprises: the picture width is 4 bytes; Sum of all pixels is 4 bytes; Alpha passage file, the RGB compressed file;
5) intermediate file after will merging adopts the deflate algorithm to carry out Lossless Compression again, generating pictures data compression data.
Before transmitting to user side 2, need the compressed file that packed data and the corresponding alternative document of image data are merged into resource data is transmitted.Be matched with the second-compressed in the picture compression processor 13, the packed data to image data in the caching resource 21 of user side 2 decompresses:
A) use the decompression of deflate algorithm to obtain the intermediate file that is formed by binary data to packed data;
B) in intermediate file, read the picture width of 4 bytes and the sum of all pixels of 4 bytes, wherein picture height=sum of all pixels/picture width;
C) in caching resource 21, create a blank picture according to picture height and picture width;
D) calculate the length of the alpha passage file that the alpha channel data by all pixels forms according to sum of all pixels, read again the data of corresponding length; Remaining data are for through the RGB compressed file of lossy compression method, use Huffman encoding this RGB compressed file of decoding, and generate RGB passage file;
E) RGB channel data corresponding in the alpha channel data in the alpha passage file and the RGB passage file is merged into pixel value, each pixel value is inserted in the blank picture that step c) created according to sequencing, be reduced into image data, image data and alternative document are merged into resource data.
Caching resource 21 in the user side 2 is used under the management of explorer 22, preserve or delete default resource corresponding to some resource request and resource data, wherein but default resource can generate in application layer 23 interface of user's simple operations, to guarantee the continuity of user's operation.In the present embodiment, default resource can be a pre-loaded good pictures, also can be the picture of being drawn out by program code, its effect be the resource in request do not load do not come up in as the acquiescence picture disply, make the user be unlikely to can't operate the interface.When after the corresponding packed data of resource request decompresses, obtaining resource data in caching resource 21, resource data is replaced default resource store, and this resource data returned in the application layer 23 show.Explorer 22 is used for receiving the resource request of application layer 23, the start-up loading process, and wherein loading procedure comprises: search resource data corresponding to this resource request in caching resource 21; If there is not resource data in the caching resource 21, then return a default resource according to the picture size of resource request to application layer 23, simultaneously this default resource is stored in occupy-place in the caching resource 21, then the processor 11 to game server 1 sends load request; After resource data successfully is loaded in the caching resource 21, replace it front default resource with resource data, upgrade simultaneously the quoting resource of resource data, be used for the next resource request about the same asset data of response.Application layer 23 is used for carrying out alternately with the user, and the interface that resource data generates is showed to the user, and the user selects corresponding application program at the interface, converts resource request to by application layer 23 and sends to explorer 22.
When the user sends a plurality of load request by application layer 23 at short notice to explorer 22, in the limited situation of the network bandwidth, clash between a plurality of load request, the utility model carries out priority to load request and divides in explorer 22.After even the load request time of sending that priority is high leans on, also can first start-up loading process, for example the priority at game the inside user's moulding, map is high, and the priority of other special efficacy is low, does not affect like this user's operation.As shown in Figure 3, when a new load request is sent, judge the load request that whether has in the load queue formerly, if load request has formerly been arranged in the load queue, then judge the priority of all load request, if new load request priority is high, then directly inserts the front of load queue, otherwise be put into the relevant position of load queue according to priority; If there is not load request formerly, then directly new load request is inserted the front of load queue; Explorer 22 sends load request according to the sequencing of load queue to processor 11.
In order effectively to utilize limited storage resources, carry out the reference count management by the resource data in explorer 22 caching resources 21, the resource that deletion is not quoted for a long time is to discharge storage space.As shown in Figure 4, the reference count management is that a counter is set in explorer 22, the number of times of quoting to resource data is counted, and when finishing that for the first time resource data corresponding to resource request loads, the default resource in the internal memory is updated to resource data after the loading.When resource request is arranged or when destroying request, the counting of refresh counter namely whenever sends the first resource request afterwards, and quoting resource is also returned in the counting of counter+1; Whenever send once the request of destruction, whether the counting of counter-1 and the counting of judging this hour counter〉0; When counting is 0, destroy the resource data in the caching resource 21.
Should be pointed out that the above embodiment can make those skilled in the art's comprehend the utility model create, and creates but limit never in any form the utility model.Therefore; although this instructions is created the utility model with reference to drawings and Examples and is had been described in detail; but; those skilled in the art are to be understood that; still can create the utility model and make amendment or be equal to replacement; in a word, all do not break away from technical scheme and the improvement thereof of the spirit and scope of the utility model creation, and it all should be encompassed in the utility model and create in the middle of the protection domain of patent.

Claims (1)

1. a web page resources data real-time loading system comprises server and user side, and it is characterized in that: described server is connected with user side; Described user side comprises caching resource, comprises database and image compression processor in the described server.
CN 201220377222 2012-07-31 2012-07-31 Webpage resource data real-time loading system Expired - Lifetime CN203260032U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201220377222 CN203260032U (en) 2012-07-31 2012-07-31 Webpage resource data real-time loading system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201220377222 CN203260032U (en) 2012-07-31 2012-07-31 Webpage resource data real-time loading system

Publications (1)

Publication Number Publication Date
CN203260032U true CN203260032U (en) 2013-10-30

Family

ID=49472581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201220377222 Expired - Lifetime CN203260032U (en) 2012-07-31 2012-07-31 Webpage resource data real-time loading system

Country Status (1)

Country Link
CN (1) CN203260032U (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016023402A1 (en) * 2014-08-13 2016-02-18 优视科技有限公司 Method and device for processing a picture memory
WO2020051884A1 (en) * 2018-09-14 2020-03-19 深圳市欢太科技有限公司 Display control method and related product
CN110990611A (en) * 2019-12-03 2020-04-10 北京奇艺世纪科技有限公司 Picture caching method and device, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016023402A1 (en) * 2014-08-13 2016-02-18 优视科技有限公司 Method and device for processing a picture memory
WO2020051884A1 (en) * 2018-09-14 2020-03-19 深圳市欢太科技有限公司 Display control method and related product
CN110990611A (en) * 2019-12-03 2020-04-10 北京奇艺世纪科技有限公司 Picture caching method and device, electronic equipment and storage medium
CN110990611B (en) * 2019-12-03 2023-04-21 北京奇艺世纪科技有限公司 Picture caching method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102831182A (en) Web resource data real-time loading system and web resource data real-time loading method
US11328450B2 (en) Point cloud encoding method, point cloud decoding method, encoder, and decoder
US10397612B2 (en) Three-dimensional video encoding method, three-dimensional video decoding method, and related apparatus
US9426476B2 (en) Video stream
JP2020526128A (en) Image data encoding method and apparatus and image data decoding method and apparatus
CN108900843B (en) Monochrome image compression method, apparatus, medium, and electronic device
WO2022257699A1 (en) Image picture display method and apparatus, device, storage medium and program product
US11893963B2 (en) Wireless programmable media processing system
CN203260032U (en) Webpage resource data real-time loading system
US11483561B2 (en) Transform method in picture block encoding, inverse transform method in picture block decoding, and apparatus
WO2024074012A1 (en) Video transmission control method, apparatus and device, and nonvolatile readable storage medium
CN108769694B (en) Method and device for Alpha channel coding based on FPGA
KR20120058227A (en) Image data encoding method for presentation virtualization and server therefor
US20220116634A1 (en) Multi-pixel caching scheme for lossless encoding
CN113839998A (en) Image data transmission method, device, equipment, storage medium and program product
KR101410837B1 (en) Apparatus for managing image by monitoring video memory
KR20180102605A (en) Image drawing methods, associated devices and systems
CN110545446A (en) desktop image encoding and decoding methods, related devices and storage medium
WO2016154816A1 (en) Data processing method and device
JP2023549210A (en) Video frame compression method, video frame decompression method and device
US9317891B2 (en) Systems and methods for hardware-accelerated key color extraction
US10219002B2 (en) Dynamic fidelity updates for encoded displays
US10225536B2 (en) Dynamic fidelity updates for encoded displays
US20220067873A1 (en) Image processing apparatus and computer-readable recording medium storing screen transfer program
WO2024140568A1 (en) Image processing method and apparatus, electronic device, and readable storage medium

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term

Granted publication date: 20131030

CX01 Expiry of patent term