Research Day FOR MLBB
Research Day FOR MLBB
Start
THREAD AND
CONCURRENCY
• In Mobile Legends, various threads are utilized to manage
different in-game processes, ensuring a smooth gaming
experience. Player movement is processed in real-time on
separate threads for each player, which allows for seamless
control without lag. Skill execution is also handled on distinct
threads, calculating effects instantly to prevent delays,
particularly during team fights. Matchmaking runs on a
background thread, utilizing MMR and other criteria to form
teams without interrupting gameplay. Game state updates are
managed across multiple threads, synchronizing important data
like health and scores across devices. Additionally, server
operations, including connection handling, operate on separate
threads to avoid lag and prevent server overload. This threaded
architecture significantly improves efficiency and responsiveness
in real-time.
NEXT
Concurrency Issues in Multiplayer
Games
• Concurrency issues in Mobile Legends can pose
problems, especially during peak periods. Lag
issues can arise as a result of increased network
and server traffic, leading to disruptions in
gameplay. The situation is worse in some areas
where there are already poor network quality.
Problems emerge with poorly designed service
such as too slow update time between players
and server, character gets displayed in wrong
position, character dies randomly, and many
others that lowers the quality of the game.
Deadlocks in Mobile Legend
Load UI Components
Yes No
Is input
Handle Touch Inputs
valid?
Ignore/Notify User
Yes No
Has Game
Update In-game
State
Physics
Changed?
Ignore/Notify User
Notify Rendering
End
Connect to Game
Notify Network Network Thread
Serve
End
Yes Is a No
Sound
Audio Thread Play Sound Effects Event
Triggered
Yes
? No Maintain Current
Sound Environment
FLOWCHART Play Relevant Sound
End
STAY TUNED
Thank youu
Back