2022 Developer Survey is open! Take survey.

Questions tagged [loading]

Generally getting assets off disk and into memory.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

UE4: Does SpawnActor load assets from disk in runtime? Is it possible to cache it on load?

How does the SpawnActor work? If actor has meshes or sounds will it be loaded in runtime? Or will it load them on start? If it loads in runtime, how can we prevent it? (for i.e. cache all assets when ...
user avatar
  • 231
0 votes
1 answer
175 views

How do game loading screens work?

I have successfully developed a 2D game. I display sequential introduction images then load the start screen after that of course I load the game level in a single thread, it is a basic functional ...
user avatar
  • 103
1 vote
1 answer
100 views

How to load level 1 when the cutscene ends?

I use timeline for creating an opening cutscene and I want to load the first level after the cutscene ends. So, I decided to use timeline signals. I created a signal emitter at the end of the cutscene ...
user avatar
  • 71
4 votes
2 answers
1k views

How to convert Resources.LoadAll to Addressables?

I have been advised to move away from the Resources system to the new Addressables system, which seems to have many advantages. I need to convert the following code to use the Addressables: ...
user avatar
0 votes
1 answer
201 views

How to clear Resources.Load cache?

I am loading my assets and tile information through YAML files. While working on the game, I needed to quickly change some values and test them in-game, and I realized I could just re-load the YAML ...
user avatar
1 vote
2 answers
488 views

Is it better to load all of the scene at once or load small parts of it as the player moves?

I want to create a lot of detail in my game but I don’t want to kill the frame rate tracking all the models and movements (like all the grass). Will loading them in pieces save the frame rate or will ...
user avatar
18 votes
4 answers
3k views

How can I efficiently load huge volumes of star systems?

I am working on a space exploration and combat game, and I can create galaxies, nebulas, solar systems, and load and unload them procedurally as needed. Meaning the stars that the player can see are ...
user avatar
  • 1,241
1 vote
1 answer
45 views

How do I refer to the two types of loading screen?

I'm troubleshooting some issues beyond the scope of this forum, and I'd like to be able to talk about certain parts of the gaming experience, specifically the two types of loading screen I see in Prey....
user avatar
  • 113
2 votes
0 answers
531 views

How to load parts of a large tilemap like chunks in Unity 2d?

I use more pictures so you can understand my opinion better. Here is the video link I recorded. My code has a problem that I use for to render it and cause it to "lag" for 1-5 seconds, so I ...
user avatar
  • 21
0 votes
1 answer
614 views

Animate Loading Screen During CPU-Heavy Scene Load

I have a scene with lots of lightweight objects and one that takes anywhere between 10 and 45 seconds to load. At a high level, the Awake method does... Query database For each result do some (fairly ...
user avatar
  • 610
0 votes
2 answers
91 views

Switching between world and battle scene with no or minimum loading?

I am making a strategy game where the player roams a grid map. When the player encounter enemy on the map he is transferred to a "battle" scene where two armies are fighting in turn based ...
user avatar
0 votes
1 answer
166 views

How to pass an argument with ref keyword to a local funtion/ how to work around it?

Unity 2019.3 I am writing a few extension methods to make my life a little bit easier, but this one is bogging me down. I am loading stuff with Unity's Addressable system, and I would like use it by ...
user avatar
0 votes
0 answers
34 views

Is using sprite sheets and drawing specific part the way to go?

I'm programming in Java. I have more than 200 MB of images used in my games, something like 100000 40x40ish images. I initially wanted to load them all during app initialization but it took like 2 ...
user avatar
1 vote
0 answers
30 views

What is the better form of movement for a vehicle that the player is inside of?

I am using unreal engine 4 to make this. Basically I have a submarine that the player can move around in and can control the submarines movement within an ocean. However I don't know the best way to ...
user avatar
  • 11
0 votes
1 answer
114 views

What is the most efficient way to load all the textures?

I am developing a game (in Java) that is going to have a lot of textures and images in it. What is the most efficient way to load all the textures? I was thinking on pre-loading all the images ...
user avatar
0 votes
0 answers
74 views

Why don't games load assets while showing main menu?

Most single player computer games have rather frustrating pattern of loading: start game Game shows you some logo videos Game indicates it is loading (general assets are loading, that are always used)...
user avatar
-1 votes
1 answer
423 views

Unity3D FindGameObjectsWithTag not recognizing any tags

I'm at a loss here because I'm not sure what's going on. I understand that tags need to exist first, and that you actually have to assign the tags after creating them, but ...
user avatar
  • 249
0 votes
0 answers
28 views

Switching between meshes vs Loading only specific mesh

I am currently developing an online multiplayer game on Unity. In the game, the character of each player will be assigned its mesh after the game receives parameters (their meshes' names) for each ...
user avatar
  • 11
3 votes
2 answers
3k views

Load scene without being in build settings and without using AssetBundle

This is the closest I've gotten: ...
user avatar
1 vote
1 answer
457 views

Loading a heavy scene behind some loading screen in unity

Is there a way to load a heavy built scene behind a loading screen in unity to not make the game look like stuck loading the scene rather show the player some loading bar that would help the player ...
user avatar
1 vote
2 answers
439 views

How can I implement versioning into a save system?

I currently have a crude save system in my game. When my game is first launched after download, it checks for three directories in a certain location on the client computer, ...
user avatar
  • 1,297
0 votes
1 answer
841 views

Why it isn't possible to get a progress in SceneManager.LoadSceneAsync between 0.0 and 0.9?

I am trying to understand why does SceneManager.LoadSceneAsync progress always jumps from 0.0 to 0.9, no matter how big a scene can be. To try trigger smoother ...
user avatar
  • 753
0 votes
3 answers
1k views

Open world loading/unloading with asset bundle in unity

I have a very large environment which I have to load/unload in unity Webgl as I can't load them at once. So, I have divide the environment into 1000 x 1000m (1km) (each chunk is consist of three layer ...
user avatar
0 votes
2 answers
2k views

Google street view racing game?

How would one create a map for gaming using Google street view? Are there any programs for doing this? The cars, people and objects could be edited out and replaced with digital copies if the same ...
user avatar
  • 1
0 votes
1 answer
1k views

Godot: 'is_on_floor' problem

I have a character in a basic platformer game and am having trouble. Whenever my character stands over two tiles on a tilemap and appears to be directly colliding with them the character's ...
user avatar
1 vote
1 answer
3k views

Creating a real loading screen between levels in Unreal Engine 4

I'm trying to create a loading screen to pop up between levels in Unreal Engine 4. I want to have a traditional loading screen such as the loading screen in Skyrim, where the player presses play and ...
user avatar
  • 305
0 votes
1 answer
312 views

Why can't I load images in processing.js and let them be dynamic?

I can't easily load images. I can only render an image once unless I put this: <img src="images/papermario.png" hidden></img> in my html. I also still ...
user avatar
  • 113
2 votes
1 answer
31 views

How can I display a loading state until a song loaded with www.GetAudioClip() is ready to play?

I use www.GetAudioClip() to get a song and play it when my Android mobile game starts. My issue is that it takes a 3-second delay to play the song. My idea is to ...
user avatar
0 votes
1 answer
24 views

Importing audiofile into Unity3d gets shown after ending playmode

I am working on a game where the user has the possibility to import custom audio tracks that can be listened to during the game. For this I am making use of System.IO.File.Copy method. This works, ...
user avatar
1 vote
0 answers
299 views

Load Unity game launch options from file

I have a need to disable the resolution dialogue when the game launches, but have a config file that will have all of the dialogue options (resolution, quality, monitor (monitor is most important, ...
user avatar
0 votes
2 answers
1k views

Loading sprite resources from nested folders

This is how I try to load my sprite images: ...
user avatar
  • 105
0 votes
1 answer
865 views

DDS load texture and cubemaps

I'm trying to render a skybox with a cubemap on it and to do so I'm using DDS Texture Loader from DirectXTex library. I use texassemble to generate the cubemap (texture array of 6 textures) into a DDS ...
user avatar
  • 143
1 vote
1 answer
258 views

Preloading for level transitions in a tile-based game?

I am developing a 2D Metroidvania which consists of a series of interconnected levels. When my player gets near a portal which can take him to a new map, I want to pre-load the next map so that there ...
user avatar
  • 1,297
0 votes
1 answer
153 views

How can i load a level in my gameengine wich is larger than 2GB? C#

i were asking myself how could i load a large Level? My gameengine is written in C# and is rendering with Direct3D11. I just have my class called "Scenery" and the class is able to store all objects ...
user avatar
7 votes
6 answers
4k views

How can I speed up slow loading of big levels?

I created a level loader that loads levels saved in an XML format. This means I am using an XML parser to read the levels. It works, but slightly bigger levels take too long to load. So now I am ...
user avatar
1 vote
0 answers
315 views

Why are my cached (in an array) gameobjects disappearing?

First, some context: I am developing a chunk loading system for unity. I load all the chunks as prefabs from disk to an array as a cache. When I need to load a chunk, I instantiate it from the cache ...
user avatar
0 votes
2 answers
2k views

Problem when reloading unity scene(level)

I am using SceneManager.LoadScene(SceneManager.GetActiveScene().name); to reload my current scene in unity , but when i run the game ,in hierarchy lots of scene ...
user avatar
2 votes
1 answer
697 views

What is the most efficient method to load 2D dynamic chunks?

Information/context I'm writing a 2D sandbox game - similar to Terraria. The world is made up of many chunks, in a variable like this: vector<Chunk> chunks; ...
user avatar
1 vote
0 answers
266 views

Loading WAV and MP3 files with LWJGL 3?

Whenever I research audio in LWJGL 3, they always use STB which can only load Ogg files. All of my audio files are in either WAV or MP3 format, and it would be annoying to have to convert all of them. ...
user avatar
1 vote
2 answers
1k views

Unity: SpritePacker Atlas with Dynamic Access

Here are current conditions for a game I'm building in Unity 5.6.3: SpritePacker is used to create atlases (it would be ideal if that didn't change, but it could, if no other options become evident). ...
user avatar
  • 29.1k
1 vote
0 answers
368 views

Loading a TMX file with Java [duplicate]

I use the program Tiled to create tile maps, which export to the TMX format. However, I can't find a way to load them into my LWJGL game. I don't want anything that renders them automatically, I want ...
user avatar
1 vote
2 answers
115 views

Loading scene doesn't reactivate gameobjects

I have some levels and a main menu. When starting the game from the main menu (in the editor debug mode) I can select a level a load it, no problem. However, when I wish to go back to the main menu ...
user avatar
  • 269
2 votes
4 answers
662 views

Can a loading screen be implemented using one thread only? If so, how?

I have seen guides on how to implement a loading screen using more than one thread. But sure it must be possible to do so with one thread, since older (even 2D) games that run on single-threaded ...
user avatar
0 votes
1 answer
77 views

Loading settings files better?

I have recently been working on a small game project and decided to implement settings loading at game startup. The problem is that my method seems to be too hard coded and not scalable without having ...
user avatar
  • 87
2 votes
0 answers
609 views

How do I correctly unload an additive Scene in WebGL?

I am creating an app in WebGL. I have a loading scene that I am loading additively: SceneManager.LoadScene("Loading Scene", LoadSceneMode.Additive); It loads ...
user avatar
  • 5,171
9 votes
4 answers
3k views

Why do prefabs speed up loading?

I have a scene with a massive terrain. It took a long time to load (approximately 60 seconds) when I pressed play. I am in the editor. I prefabbed it. Now it only took about 5 seconds to load when ...
user avatar
  • 5,171
1 vote
1 answer
2k views

How is text/scripts/dialogue stored and accessed in games?

For large, complex games, I imagine that text descriptions, dialogue lines, etc, are organized in some sort of database, and not actually hardcoded into the source. Are there any conventions on how ...
user avatar
  • 131
10 votes
3 answers
6k views

Can I run my own loading script during the Unity splash screen?

Can I load data in the background while the Unity splash screen is up? If so, how? I am trying to run code during the splash screen, not just load assets. I have not been able to find any ...
user avatar
  • 5,171
15 votes
2 answers
32k views

Smooth loading screen between scenes

I created a loading screen to display a loading animation as the next scene is loading. I load the next scene asynchronously with: ...
user avatar
  • 1,515
0 votes
2 answers
123 views

Why does Unity allow me to use GameObjects created from non-existent prefabs?

I have code similar to the following in a Unity project. I was trying to shoot a projectile when spacebar was hit, but a projectile wasn't appearing. I found out the problem was caused because I moved ...
user avatar