IP Library Granted Patent US 12,204,878
Granted Patent B2
US 12,204,878 · App. 18/055,222 · Granted Jan 21, 2025

Resource file loading method, apparatus, electronic device and storage medium

Inventors: Yu Li (Beijing, CN); Jing Wang (Beijing, CN); Boyuan Hu (Beijing, CN)
Assignee: BEIJING ZITIAO NETWORK TECHNOLOGY CO., LTD.
G06F8/33G06F8/71G06F16/152G06F16/955G06F16/957
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,204,878
App. No.
18/055,222
Granted
Jan 21, 2025
Kind
B2
Abstract

The present application relates to a resource file loading method, apparatus, electronic device and storage medium, which are applied in the field of Internet technology. The method includes: acquiring an editable first resource file, storing the first resource file and cache data of the first resource file; wherein the cached data is un-editable, and the file size of the cached data is smaller than that of the first resource file; in response to a loading instruction for the first resource file, determining whether the first resource file has changed; if the first resource file has not changed, acquiring the cached data of the first resource file and loading the cached data of the first resource file; if the first resource file has changed, acquiring the first resource file and loading the first resource file.

Claims (69)

1. A resource file loading method, comprising:

acquiring an editable first resource file, and storing the first resource file and cached data of the first resource file; wherein the cached data is un-editable, and a file size of the cached data is smaller than that of the first resource file, and the cached data has the same file format or data type as that of a resource file of an engine for loading;

in response to a loading instruction for the first resource file, determining whether the first resource file has changed;

if the first resource file has not changed, acquiring the cached data of the first resource file, and loading the cached data of the first resource file; and

if the first resource file has changed, acquiring the first resource file, and loading the first resource file.

2. The method according to claim 1 , further comprising:

generating identification information corresponding to the first resource file according to the first resource file, and storing the identification information corresponding to the first resource file;

wherein the determining whether the first resource file has changed includes:

acquiring the first resource file, and generating current identification information of the first resource file according to the first resource file;

if the current identification information is not equal to the identification information, determining that the first resource file has changed; and

if the current identification information is equal to the identification information, determining that the first resource file has not changed.

3. The method according to claim 2 , further comprising:

if the first resource file has changed, updating the stored identification information to the current identification information; and

updating the stored cached data to current cached data of the first resource file.

4. The method according to claim 1 , wherein the storing the first resource file and the cached data of the first resource file includes:

storing the first resource file in a first directory; and

storing the cached data of the first resource file in a second directory.

5. The method according to claim 1 , further comprising:

acquiring a second resource file, and storing the second resource file; wherein the second resource file is un-editable; and

in response to a load operation for the second resource file, loading the second resource file.

6. The method according to claim 5 , wherein a data type of the cached data of the first resource file is the same as that of the second resource file.

7. The method according to claim 2 , wherein the generating identification information corresponding to the first resource file according to the first resource file includes:

performing hash calculation on the first resource file to obtain a hash value of the first resource file; and

determining the hash value as the identification information corresponding to the first resource file.

8. An electronic device, comprising: a processor configured to execute a computer program stored in a memory, wherein the computer program, when executed by the processor, causes the processor to:

acquire an editable first resource file, and store the first resource file and cached data of the first resource file; wherein the cached data is un-editable, and a file size of the cached data is smaller than that of the first resource file, and the cached data has the same file format or data type as that of a resource file of an engine for loading;

in response to a loading instruction for the first resource file, determine whether the first resource file has changed;

if the first resource file has not changed, acquire the cached data of the first resource file, and load the cached data of the first resource file; and

if the first resource file has changed, acquire the first resource file, and load the first resource file.

9. The electronic device according to claim 8 , wherein the computer program further causes the processor to:

generate identification information corresponding to the first resource file according to the first resource file, and store the identification information corresponding to the first resource file;

wherein the computer program causes the processor to determine whether the first resource file has changed by causing the processor to:

acquire the first resource file, and generate current identification information of the first resource file according to the first resource file;

if the current identification information is not equal to the identification information, determine that the first resource file has changed; and

if the current identification information is equal to the identification information, determine that the first resource file has not changed.

10. The electronic device according to claim 9 , wherein the computer program further causes the processor to:

if the first resource file has changed, update the stored identification information to the current identification information; and

update the stored cached data to current cached data of the first resource file.

11. The electronic device according to claim 8 , wherein the computer program causes the processor to store the first resource file and the cached data of the first resource file by causing the processor to:

store the first resource file in a first directory; and

store the cached data of the first resource file in a second directory.

12. The electronic device according to claim 8 , wherein the computer program further causes the processor to:

acquire a second resource file, and store the second resource file; wherein the second resource file is un-editable; and

in response to a load operation for the second resource file, load the second resource file.

13. The electronic device according to claim 12 , wherein a data type of the cached data of the first resource file is the same as that of the second resource file.

14. The electronic device according to claim 10 , wherein the computer program causes the processor to generate identification information corresponding to the first resource file according to the first resource file by causing the processor to:

perform hash calculation on the first resource file to obtain a hash value of the first resource file; and

determine the hash value as the identification information corresponding to the first resource file.

15. A non-transitory computer-readable storage medium with a computer program stored thereon, which, when executed by a processor, causes the processor to:

acquire an editable first resource file, and store the first resource file and cached data of the first resource file; wherein the cached data is un-editable, and a file size of the cached data is smaller than that of the first resource file, and the cached data has the same file format or data type as that of a resource file of an engine for loading;

in response to a loading instruction for the first resource file, determine whether the first resource file has changed;

if the first resource file has not changed, acquire the cached data of the first resource file, and load the cached data of the first resource file; and

if the first resource file has changed, acquire the first resource file, and load the first resource file.

16. The non-transitory computer-readable storage medium according to claim 15 , wherein the computer program further causes the processor to:

generate identification information corresponding to the first resource file according to the first resource file, and store the identification information corresponding to the first resource file;

wherein the computer program causes the processor to determine whether the first resource file has changed by causing the processor to:

acquire the first resource file, and generate current identification information of the first resource file according to the first resource file;

if the current identification information is not equal to the identification information, determine that the first resource file has changed; and

if the current identification information is equal to the identification information, determine that the first resource file has not changed.

17. The non-transitory computer-readable storage medium according to claim 16 , wherein the computer program further causes the processor to:

if the first resource file has changed, update the stored identification information to the current identification information; and

update the stored cached data to current cached data of the first resource file.

18. The non-transitory computer-readable storage medium according to claim 15 , wherein the computer program causes the processor to store the first resource file and the cached data of the first resource file by causing the processor to:

store the first resource file in a first directory; and

store the cached data of the first resource file in a second directory.

19. The non-transitory computer-readable storage medium according to claim 15 , wherein the computer program further causes the processor to:

acquire a second resource file, and store the second resource file; wherein the second resource file is un-editable; and

in response to a load operation for the second resource file, load the second resource file.

20. The non-transitory computer-readable storage medium according to claim 19 , wherein a data type of the cached data of the first resource file is the same as that of the second resource file.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 15, 2022
From: WANG, JING; LI, YU
To: BEIJING ZITIAO NETWORK TECHNOLOGY CO., LTD.
Reel/Frame 061783/0689 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 15, 2022
From: HU, BOYUAN
To: SHANGHAI SUIXUNTONG ELECTRONIC TECHNOLOGY CO., LTD.
Reel/Frame 061783/0745 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 15, 2022
From: SHANGHAI SUIXUNTONG ELECTRONIC TECHNOLOGY CO., LTD.
To: BEIJING ZITIAO NETWORK TECHNOLOGY CO., LTD.
Reel/Frame 061783/0768 →
Priority Claims (1)
CN 202111636944.4 · Dec 29, 2021 · national
Continuity (1)
Related Publication 20230205494A1 · Jun 29, 2023
References Cited (18)
US 10666708B1 · Gavalas · 2020 [cited by examiner]
US 20060100973A1 · McMaster · 2006 [cited by examiner]
US 20120159260A1 · Fortune · 2012 [cited by examiner]
US 20140359423A1 · Doan et al. · 2014 [cited by applicant]
US 20170310753A1 · Knothe · 2017 [cited by examiner]
US 20180041590A1 · Ma · 2018 [cited by examiner]
US 20190212987A1 · Okamura · 2019 [cited by applicant]
US 20210073013A1 · Burukhin · 2021 [cited by examiner]
US 20210271640A1 · Du · 2021 [cited by examiner]
US 20210344741A1 · Chen · 2021 [cited by examiner]
US 20230351050A1 · Tu · 2023 [cited by examiner]
US 20230376459A1 · Wang · 2023 [cited by examiner]
US 20240037164A1 · Wang · 2024 [cited by examiner]
CN 109513212A · 2019 [cited by applicant]
CN 112379944A · 2021 [cited by applicant]
CN 112506584A · 2021 [cited by applicant]
CN 113296778A · 2021 [cited by applicant]
Timo Luukkonen, Resource Management in Game Engine Development, 2015, [Retrieved on Sep. 12, 2024]. Retrieved from the internet: <URL: https://www.theseus.fi/bitstream/handle/10024/101246/Luukkonen_Timo.pdf;sequence=1> … [cited by examiner]