Game devs terms + roblox game behavior

What does these terms means and especially how do they work in a game . Rendering,Fps,thread,actor,Async,chunk, and especially how do memory work?
When a game runs on roblox which scripts run first and how can i control them
(Bonus: what are the other terms i should thay i should learn about them?)

3 Likes
  • Rendering: How and when game objects are loaded or “destroyed” (to save memory)
  • FPS: Frames per second (the more the better, the more you have the smoother your game is because there are more updates to the screen)
  • Thread: A set of instructions that run synchronously to one another (for example, each function connected to a signal runs in its own thread)
  • Async: Short for asynchronous - code that runs at the same time as another piece of code. coroutines are not truly asynchronous, each thread is split up into tiny chunks and interspersed; but Parallel Luau is asynchronous.
  • Chunk: sorry i forgot
  • Memory management is different depending on your game situation

Another topic that might help:
What is one abbreviation that all developers must know? - Development Discussion - Developer Forum | Roblox

5 Likes

Can u please be more detailed about the 1st and the 2nd ones

3 Likes

Sure.

Rendering is basically how many objects your game loads at a certain time. Turn up render distance, it will load more, turn it down, it will load less, respectively.

This exists so that memory can be preserved on lower end devices that can’t handle all the game assets at once. By loading only what needs to be loaded/is set to be loaded at that time, you can preserve memory by not loading the other ones, which frees up space for other processes. Through Roblox built-in methods, this is done through workspace’s Streaming settings. You can also use things like CollectionService to detect when objects are rendered in and rendered out.






Frames per second is basically a refresh rate. It’s how often the picture on your screen is updated. If your screen updates more often, it means the leap between sets of data from the last frame and the new frame are less, which overall makes your game look smoother because less changes are made between frames. If you have less fps, your game will look much laggier because of the extended length between two updates.

More FPS will take up more memory.

2 Likes

How does roblox game behave i mean when you open a game what runs first in it
Thanks for the previous answer
And about the memory management i cannot find a script that runs at specific time nor prior to
And how can i see if there is any memory leak
Like event being constantly fired
Sry for lot of questions

1 Like

I’m not too sure on this, all I know for sure is that on the server instances will load before scripts are run. ReplicatedFirst also runs first on the client, but I’m not sure about the rest.

There are many memory monitoring and management tools in the Developer Console to help you with this, such as LuauHeap and ScriptProfiler. Using those could help you track large memory consumption.

3 Likes

ReplicatedFirst, in regards to the client, will load in first before anything else. This is commonly used in loading screens and smoothening out player teleports across games.

2 Likes

Welll i have a serv3r script that shall tp a player to another position when they join the game but it doesnt work nor throw an error but when i add task.wait() it works although the error that i should get when not adding the task.wait() is attempt to --something with nil but i dont get it i thought about the character that it might be delayed to join the game but the task.wait() proved the inverse why?

2 Likes

Can you paste your script here? So we might help directly on that issue. I don’t think any of the game dev terms you’ve listed are particularly relevant, maybe “event” or "connection"s will get you closer.

1 Like

You can’t expect the player character to exist. ReplicatedFirst replicates before the player’s character is loaded.

2 Likes
local players = game.players
local places = {Position =73,28,-12} -- there are more positions here
player.playerAdded:Connect(function(plr)
          plr.CharacterAdded:Connect(function(char 
           plr.CharacterAdded:wait()
-- if i add a task.wait here it teleports the player
            char:MoveTo(Position)
       end)
end)
1 Like

i havent put anythinf om replicated first yet the script that i ve been speaking of is located at serverscriptstorage

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.