Questions tagged [loading]

Generally getting assets off disk and into memory.

21 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
11 votes
3 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 ...
Evorlor's user avatar
  • 5,775
2 votes
0 answers
995 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 ...
Qusdrok's user avatar
  • 21
1 vote
0 answers
391 views

Scene loading finishes (90%) in 1 frame, but isn't isDone until 3 frames later

I am loading scenes async using addressables like so ...
complex problem's user avatar
1 vote
0 answers
55 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 ...
Alex's user avatar
  • 11
1 vote
0 answers
375 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, ...
Paul Vinogradov's user avatar
1 vote
0 answers
343 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 ...
Thomas Mathieson's user avatar
1 vote
1 answer
399 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. ...
GiraffeKey's user avatar
1 vote
0 answers
727 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 ...
Evorlor's user avatar
  • 5,775
0 votes
0 answers
44 views

Unable to load texture from temporary directory

I'm developing a game in Ursina. Since my old question did not get any answers, I decided to extract the zip file to a temporary directory and read the assets from there, but not everything runs well. ...
EarthAndMoon's user avatar
0 votes
0 answers
57 views

How to load asset from zip file?

How can I load an asset (model, texture, etc.) from a .zip file in Python's Ursina module without extracting it? I tested this code: ...
EarthAndMoon's user avatar
0 votes
0 answers
94 views

WHY doesn't Python's Ursina module load textures from .mtl file?

Why doesn't the Ursina module directly load all textures from an obj's mtl file? Let's assume I have 4 files: test.py: ...
EarthAndMoon's user avatar
0 votes
0 answers
49 views

Only first line/column of level text file gets loaded into tile map

I'm trying to make a map using a text file, but it only does the first line / column and not the rest. I know the problem is in getTileImage. ...
Nobodyis_here's user avatar
0 votes
0 answers
57 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 ...
Axel Carré's user avatar
0 votes
0 answers
110 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)...
Tomáš Zato's user avatar
0 votes
0 answers
35 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 ...
ruiyl's user avatar
  • 11
0 votes
0 answers
55 views

Two game object efficient and fast on-off switch

I have two game-object, on GUI button click i am toggle between them but the problem is one game-object which is small contains less vertx etc., is loading fast while the other which heavy taking time....
Muhammad Faizan Khan's user avatar
0 votes
0 answers
558 views

How heavy is a scene load in Unity assuming all referenced objects are in memory?

From what I understand, resources that are local to a particular scene( not a prefab, or texture, material asset etc ) are embedded in the scene file itself, while external resources are just ...
Ben's user avatar
  • 2,131
0 votes
0 answers
773 views

Android: Asynctask causes ANR (very) intermittently

I'm doing some work on an AsyncTask (creating game objects, loading resources etc) while displaying a static splashscreen. The problem is that every now and then, the AsyncTask doesn't run and the ...
BungleBonce's user avatar
  • 1,927
0 votes
0 answers
40 views

Loading dynamically created files with XNA

I'm trying to implement a structured save/load functionality so if the user saves, it will take up one of 10 slots, and if the user loads, they would select one of these slots. To do this, I need ...
Mike's user avatar
  • 123
0 votes
1 answer
74 views

OpenGL Mapped Memory Shader Source

Is there any way to get a pointer to a newly created shader object's source? I'd like to load a shader directly from file in to my shader object instead of loading to an intermediary variable and then ...
Daniel P. Oakes's user avatar
-1 votes
2 answers
104 views

How to make a proper cache on user computer?

Currently when launching the client of the game, it connects to the server and loads all the cachedata in a normal form (= folders, .txt files and .png files). However I don't like that the players ...
minisurma's user avatar