Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [realtime]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
103 views

Rollback netcode: how to avoid teleportation?

I've currently implemented rollback netcode with a central, authoritative server (wooh!). I'm running into issues where if players have zero input delay, the other players see them "teleport"...
user avatar
0 votes
0 answers
30 views

How important is it to use an in-memory datastore for real-time networked game data?

I am building some online multi-player web-based games. Naturally, we are using WebSockets to connect to the game server. I need to store "real-time" data for these games, things like which ...
user avatar
  • 887
0 votes
0 answers
156 views

How to make a point light cast shadows in realtime?

I have a solar system... The central star has a point light attached to it. However, objects don't cast shadows on each other... Planets are < 20 units from the star, so it's not a light falloff ...
user avatar
  • 610
0 votes
1 answer
93 views

keeping clients up to date with server state in an mmo-like game [duplicate]

I'm making an online RPG that could classify as an MMO, but I'm keeping the project scope very small by making the game's systems simple, and focusing mostly on what I want to learn: real-time ...
user avatar
  • 1
0 votes
1 answer
3k views

Baked vs realtime global illumination in unity

I use unity. So far I know that the baked GI is less GPU processing when the game is played so if possible, I need to use baked GI. Newbie question: I'm using unity and just curious in the light ...
user avatar
  • 135
1 vote
1 answer
211 views

How to handle data for a competitive multiplayer games

I am kinda new to Multiplayer Games and I am really wondering how I should handle my data Should each player send and update their data to the database (server) everytime one of their essential ...
user avatar
  • 13
3 votes
2 answers
429 views

How do Idle games progress while not active? [closed]

A hallmark of many idle games is the ability to still progress (or at least regain resources) while the game isn't active. The device can even be off. Initially I figured they just calculated ...
user avatar
  • 792
-5 votes
1 answer
248 views

What is the unit of time in Unity?

In Unity what is the unit that time follows ? (milliseconds, microseconds or seconds?)
user avatar
3 votes
0 answers
130 views

How can I implement slow motion for one player in multiplayer?

Special attacks in Mortal Kombat Mobile require slow motion i.e. delay in game play. On multiplayer mode, when the opponent uses special attacks, I don't observe any lag/delay. When I use special ...
user avatar
-3 votes
1 answer
46 views

Does unity3d's 5 seconds' simulation correspond to 5 seconds in real-world?

How is time modelled in unity? Is it same as the time in real-world?
user avatar
  • 329
0 votes
3 answers
167 views

How does real-time raytracing draw reflections of off-screen geometry?

I know what raytracing is, but I'm a bit curious how games are able to reflect off-screen geometry using raytracing in real-time. I tried looking up the technical details but most of the articles are ...
user avatar
1 vote
1 answer
245 views

NodeJS client gameloop running slightly faster than server gameloop

So I'm working on a real time multiplayer game in NodeJs (Client and Server). Both loops handle the same "physics" (movement at a constant rate) and both are running at 40hz or 40 times per second. I ...
user avatar
1 vote
1 answer
159 views

Game mechanics for a persistent real-time strategic/tactical game

I am designing a game based around a fairly realistic simulation of 'Age of sail'-like trading and combat, and I am currently trying to decide whether to make the game a limited on-line application, ...
user avatar
1 vote
0 answers
380 views

Real-time MMO: how should authoritative server update client position

I'm trying to build a real-time MMO game. I'm using Phaser for FE and Node.js + socket.io for BE. I have read all the tutorials like http://www.gabrielgambetta.com/client-side-prediction-server-...
user avatar
0 votes
1 answer
139 views

Omnidirectional Faded Soft Shadows

I'm doing research to implement a shadow algorithm for omnidirectional soft shadows in a real-time 3D renderer. I've read about PCF but to me it doesn't look very realistic since it doesn't "fade" ...
user avatar
2 votes
0 answers
535 views

Persistent realtime game authentication (JWT, Passport)

Context I am building a MMO game in HTML5 with canvas. I use NodeJS on server & JS from scratch on client. I also use socket.io to manage realtime. The game is persistent & each player keep ...
user avatar
3 votes
0 answers
1k views

Framerate independent realtime input

I am currently working on a fighting game (with 3d graphics, gameplay like a 2d fighter) and encountered a pretty big hurdle I currently don't know how to deal with. For fighting games, input ...
user avatar
49 votes
17 answers
11k views

How to create an RTS gameplay experience where all phases of a match are equally engaging without spikes in required concentration?

In games such as Starcraft Brood War, players at the start of the game don't have as much to do compared to later on when they have to manage multiple battles and multiple bases at once. This means at ...
user avatar
1 vote
1 answer
60 views

IntersectMovingAABBAABB weird behavior

I'm using the IntersectMovingAABBAABB implementation from the book Realtime Collision Detection and I'm having a little bit of ...
user avatar
0 votes
1 answer
175 views

How to find and send data about on-screen players to a client in a real-time multiplayer game?

I'm surprised I couldn't find much information on this. I am making a top-down browser game in which the players see a small section around their player (see the image). Since the player doesn't need ...
user avatar
3 votes
1 answer
633 views

What is a reasonable bandwidth usage for a RT multiplayer game? [closed]

My game uses UDP communication only. Meaning: after the lobby connect (performed by Google Play Services), not a single TCP transmission is made. Only unreliable messages are used. The game is ...
user avatar
  • 3,669
5 votes
2 answers
1k views

Unity: How can I get realtime image capturing at ~60fps?

I am writing an application in Unity which will be required to capture an image from a camera every frame (at ~60fps), and send the resultant data to another service running locally. The issue is, I ...
user avatar
0 votes
1 answer
2k views

How can I accurately lerp Colors over seconds?

I have some code to lerp between two colors over a set number of seconds, and the lerp works fine: ...
user avatar
  • 5,171
1 vote
1 answer
1k views

How to save and load scene in realtime?

I'm working on an editor where one important feature is to save and load changes (all type of changes like adding and removing objects and their components and components property values) I want to ...
user avatar
  • 2,428
2 votes
2 answers
2k views

Realtime inverse kinematics on unity apps for android and iOS

Hello I want to understand how much overheads do implementing inverse kinematics in realtime add. I am looking at an implementation as such demonstrated in the video. https://www.youtube.com/watch?v=...
user avatar
6 votes
2 answers
15k views

Performance of manipulating a mesh in realtime

Does Unity allow streaming mesh data that can be continuously changed? I have a level that is dynamically changing based on some parameters. The number of triangles stays the same, they just change ...
user avatar
1 vote
1 answer
819 views

HTML5 realtime MMO games, should I do server side physics update or client side?

I am using socket.io and HTML 5 canvas to build a MMO game as a practice. I finished the client side first and currently I am working on server side. Apparently the position/physics update is on ...
user avatar
  • 255
2 votes
2 answers
196 views

How to confirm an actor location in a realtime multiplayer game at the exact same time on two devices?

I am trying to figure out how to make a game like Pong in multiplayer. I have two devices that run the same simulation. Now I want to make sure that each of them start at the exact same time and send ...
user avatar
  • 145
0 votes
0 answers
97 views

Generating a set of islands in real time

With thismethod I can create multiple separated islands just by randomly choosing a point as the center for a gradient. Now what I want to do is to have a system of real time generation like the one ...
user avatar
81 votes
11 answers
34k views

Is UDP still better than TCP for data-heavy realtime games?

I know that UDP is usually recommended for real-time multiplayer games with high data usage. Most articles are serval years old, and since ~80% of all data transmitted on the internet is TCP, a lot ...
user avatar
  • 1,943
1 vote
0 answers
841 views

Unity: Build looks different then gameview: runtime reflection probes not working correctly

Im having a really hard time figuring out how to configure my reflection probes to update in runtime once I build. The game port view looks totally different than the build view. Ive tried turning off ...
user avatar
0 votes
1 answer
201 views

How to find the participation id corresponding to a sender id

I am creating a real time multiplayer game in unity 3d using Google Play Game Services. In my function where I deal with the positioning of players based on information that is sent from other players,...
user avatar
  • 235
0 votes
1 answer
158 views

Updating a gameobject position that needs to be consistent across all players' games

I am creating a real time multiplayer game in Unity 3d using Google Player Services that has a ball that the players will interact with. I'm not particularly sure how I will update the ball's position ...
user avatar
  • 235
0 votes
1 answer
131 views

Slaving OpenSceneGraph to an external time base?

I'm working on an OpenSceneGraph animation, and I want events in the animation to be synchronized to a time reference provided by my audio player (BASS or FMod). Yes, this is a demo :) . Which time ...
user avatar
  • 155
2 votes
2 answers
1k views

RTS combat system

I am developing a small-scale TB/RT Strategy hybrid, not unlike the Total War series. It's in the classic medieval setting, with only melee infantry combat currently implemented for testing. Units are ...
user avatar
2 votes
1 answer
571 views

2015 android multiplayer server based Implementation

There are a lot of old posts about multiplayer implementations on SE, so i'm looking for an up-to-date answer. What is the best server-client implementation of real-time multiplayer now? I have an ...
user avatar
2 votes
1 answer
172 views

Game loops using Hard realtime systems vs Soft realtime systems

I have read the article here about realtime systems and am looking for examples specific to game loops. Am I correct in saying: Hard realtime systems will lag and slow down gameplay causing slow ...
user avatar
  • 131
0 votes
1 answer
1k views

Android Studio libgdx multiplayer

Does anyone know if it's possible to setup a multiplayer game using libgdx in Android Studio? I've been trying to convert my game to multiplayer using all kinds of tutorials on libgdx & ...
user avatar
0 votes
1 answer
50 views

How, if possible, do you add loop cuts to models in real time?

I am working on a prototype for a very low poly game. I can't figure out a way for a player to cut or break objects in real time without predefined fractures. For example, if a player cuts a tree, it ...
user avatar
  • 1
0 votes
1 answer
305 views

Google Play Game Services real-time multiplayer secure game data architecture

Is it secure to allow all game clients in a multiplayer game session to store sensitive opponent player data which should be revealed in the UI only upon a certain action (e.g. enemy building type ...
user avatar
2 votes
1 answer
2k views

Pathfinding in a 2D "sidescrolling" strategy game

I've been thinking up a real-time strategy game that plays on a platformer type of map. The collidable portion of these maps will be made up of square tiles. I've done A* pathfinding in top down tile ...
user avatar
2 votes
3 answers
18k views

Fast Ray Sphere collision code [closed]

I am looking at here and while it's well organized a lot of links are broken: http://www.realtimerendering.com/intersections.html I am trying to find fast code that will give me the hit point and the ...
user avatar
0 votes
0 answers
138 views

Trying to get the fragment shader to output a list

I am trying to figure out a way to get the Fragment Shader to output a list of gl_VertexID-s. I want to use the GPU to get a list of vertices in the viewing ...
user avatar
  • 385
0 votes
0 answers
86 views

manipulate textures in real time using GPU

I'm looking for some way (tutorial, library or build in option) to draw texture on JMonkey in real time. So I have 2 images one a normal texture that is fairly big(4000x4000) and another much smaller ...
user avatar
  • 965
1 vote
1 answer
888 views

which is the best approach or algorithm to calculate real-time ranking

I want to know the fastest and most efficient way to compute points and ranking in real time. I'm doing a betting football game (a game where users try to predict the outcome of a game before it). In ...
user avatar
5 votes
4 answers
3k views

How can I implement a real-time game loop in a text-based game?

I am trying to make a short text game with c++ to help me learn the language. I have made a version that basically displays texts, waits for an input, once the input is received it displays text, and ...
user avatar
4 votes
1 answer
208 views

Executing commands at the exact same time on 2 or more computers

I have an RTS game, with deterministic simulation, but if I want multiplayer to actually work, I need commands sent between computers to be executed at the exact same time. My game's networking is ...
user avatar
1 vote
1 answer
101 views

Save a mouse coorinates after a specific number of seconds

I have a specific method that saves my mouse x and y coordinates. I want that mouse coordinates be saved by specific time (for example after 1000ms). How I need to do that in Java? Please add a simple ...
user avatar
0 votes
2 answers
230 views

How can I efficiently update only the entities that matter in a given frame?

I'm making a RTS, which can potentially have lots of units in one map (think Age of Empires). I'm looking for a way to update my units. I want to avoid calling a virtual ...
user avatar
  • 1,392
0 votes
1 answer
993 views

How to accurately count 1 second within my logic update?

I have the following method: ...
user avatar
  • 1,897