哪个更适合加载游戏资产?(Which is better for loading game assets?)

编程入门 行业动态 更新时间:2024-10-21 17:23:10
哪个更适合加载游戏资产?(Which is better for loading game assets?)

我想知道哪个更适合我的游戏,例如在游戏启动画面上加载所有资源一次,或者分别加载和处理每个屏幕的资产?

I am wondering which is better for my game either to load all the assets only once on a game splash screen for example or loading and disposing the assets of each screen separately ?

最满意答案

您的问题的答案完全基于意见。

仅加载所有资产一次,并在退出游戏时处置。

根据已使用/未使用的资源加载和处理每个屏幕的资产。

在我看来,你应该根据资源的大小选择这些选项。

如果您的游戏使用的资源很少,您应该在SplashScreen的帮助下加载所有屏幕的所有资源,并在退出游戏时进行处理。

如果你的游戏有很多资源,比如考虑,你的游戏就是三场比赛和农场比赛的结合。 两种游戏类型都需要批量或资源,因此您必须卸载先前屏幕的未使用资源并为新屏幕加载资源。

Answer of your question is totally opinion based.

Load all the assets only once and dispose when you exit your game.

Load and dispose assets of each screen, depending upon used/unused resource.

In my opinion you should choose these option depending upon size of game in terms of resources.

If your game using few resources you should load all resources for all screen at starting with the help of SplashScreen and dispose when you exit your game.

If your game have lots of resources like consider, your game is combination of three-match game and farming game. Both game type required lots or resources so you must unload unused resources of previous screen and load resource for new screen.

更多推荐

本文发布于:2023-07-23 18:42:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1235679.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:更适合   加载   资产   游戏   assets

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!