• Advertisement
  • Popular Tags

  • Popular Now

  • Advertisement
  • Similar Content

    • By davemacdo
      I'm a formally trained composer (doctorate from Michigan State) who writes what most people would call avant-garde concert music. I love weird abstract projects, and I would like to work with somebody making a weird, abstract, artsy game. 
      You can find more about me and my music on my site. I have worked with acoustic and electronic sounds, including some algorithmic and interactive computer music. 
      In particular, I would like to work on a project that lets me use Fmod to prepare an adaptive score for a game built on Unity or Unreal. I've been a music professor and would like to get experience working in this medium so that I can be a better mentor for my students. Send me a DM or email <davidjohnmacdonald@gmail.com> if you would like to discuss working on a project together. 
    • By Tuner_z

      Name: One Level: Stickman Jailbreak
      Price: Free
      Developer: RTU Studio
      Platform: Android
      Language: C# (Unity3D)
      Google Play: https://play.google.com/store/apps/details?id=com.RTU.OneLevel
      I want to show you my game! "One level: Stickman Jailbreak" is a puzzle game with unusual gameplay where you must help the character to escape from prison. You just need to take the key and get out alive. The game has only one level, and there are many ways to complete it. Not everything is as simple as it might seem at first glance, so there are clues in the game.
      Short description:
      Nobody escapes from here!
      Tommy got into trouble again! Our hero is behind bars. But he's not going to stay in jail for a long time and he decides to escape. Tommy steals a key and gets out of the jail cell. But our friend doesn't go free: Tommy suddenly finds himself in the same room from which he just escaped! The conditions for escaping change every time. In order to go free Tommy will have to solve logical puzzles and you can help him in this!
      At first it will be easy, but the tension will increase, and the tasks will become more complicated with each level. You should use your brain for all 100%, but if your skill is not enough, you can use a hint or ask for help from friends!
      You can solve the puzzles alone or with your friends and spend time well!
      - 48 unique levels;
      - the game is translated into 10 languages: English, French, German, Spanish, Italian, Portuguese, Russian, Japanese, Chinese, Korean;
      - the function of "help from friend";
      - hints;
      - instructions.

    • By Brandon Marx
      Hello forum,
      I have some decent amount of experience in Unity making games for Software Engineering projects in college, these were very specific projects however and I still am fairly new to building games. I wanted to make a game that uses the shadows of objects for collision detecting (i.e. shooting a gun at a characters shadow causes that character damage. What is the best engine to do this in (game will be 3D), and does anyone have any advice on how to approach this concept? I consider myself fairly experienced in programming, but game dev is just an entirely different beast.
    • By juicyz
      Hey all,
      I've been slowly working on my game called AotW for a while now.  I have come to the conclusions that it would be nice to cooperate with 1 or 2 others to help finish it.  Ive been trying to keep my GDD up to date with my ideas and development so that would give a better overview of the game when the time comes.  Currently I have a basic skeleton of the RPG elements needed but everything can still be discussed and talked about and we can transform my idea to something the group likes.
      The premise of the game is a Diablo-like procedurally generated map with RPG elements that include sockets, inventory, classes, abilities, crafting, loot, items, sockets, and enchanting.  This will be done in a 2D iso view as I can't do 3D art and I enjoy 2D games a lot.
      I don't plan on releasing this as this is more of a hobby project for me and I have a full-time job.  Though I'd like to start putting more hours into development and having others definitely will be motivation.  I also want to be able to say I have finally "finished" a game idea to some degree.  If the time comes and we want to release it, then we can go ahead and do so but that's not my purpose or plan. 
    • By Arnold // Golden Donkey Productions
      Hi, I've been working on this issue for a while and haven't yet found an answer.
      Does anyone know the best way to convert unity's LAT & LONG into a vector 3 position that I could use in a virtual world (if it's even possible). 
      Thankyou in advance
  • Advertisement
  • Advertisement
Sign in to follow this  

Unity Inter process communication between Renderer and Game Logic

This topic is 1966 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello everybody,

So lets say you want to make a game in Go (http://golang.org), but because of the lack of preexisting solutions and because you think it is not what you want to spend your time on, you decide not to do the user interface (that is graphics, sound, input handling) in go, but you would want to use Unity.

Now we have one process running the logic, and another process running the 'viewer'. My idea is to do the IPC over a local TCP-socket since it seems the easiest to implement(?). I would then probably send delta updates of the information on entities which have to be drawn from the logic to the viewer, and input updates form the viewer to the logic.

My main questions are: Has someone already done something like this? And do you think it is a good idea? :)

I guess the lag from the IPC should be not noticeable, and the amount of data that needs to be transfered is not that high.



Share this post

Link to post
Share on other sites
This is how every modern chess and go (the board game, not the language) program works: There is a GUI process that launches the engine and communicates with it via a bidirectional pipe. For chess, the communication happens using one of two protocols: XBoard's protocol or UCI. Go uses GTP. This allows engine programmers to focus on making strong engines, it allows users to switch engines and it allows for much easier testing of the engines.

What kind of game do you have in mind? Edited by Álvaro

Share this post

Link to post
Share on other sites
The first thing i would want to do is implement a simple go version of the top down shooter demo that comes with unity and then take it from there. So the first thing to do is to think about a protocol to send the position/transformation, animation and input data. Should maybe also include fire and forget events from the game logic like visual and sound effects (explosions etc.).

Share this post

Link to post
Share on other sites
I would use pipes because they are just as easy to use as TCP sockets (maybe even easier?) and because they are most likely faster. Whether or not the delay matters depends a lot on the game of course, but I guess for a shooter game which is kind of "twitch" by nature, it might just matter.

A pipe is usually something like a kernel handle attached to a small piece of shared memory managed by the kernel. Or, something similar. Writing to and reading from a pipe is something like a memcpy (or on some operating systems, under some conditions, incrementing a page table reference counter and adding a page to a working set).

A TCP socket must at the very least do a memcpy and calculate two checksums, consider a MTU (even if the MTU is the maximum allowable by IP on a local socket, TCP must still honor it and packetize as appropriate) and so some address/port mapping stuff, and possibly go through firewall rules, so conceptually it must be slower.

Usually you will just give a crap, because nobody notices anyway, but when you really need "twitch", it may be worthwile to use something different. A pipe doesn't really have any disadvantages over a socket, other than you can't run the frontend and the logic on different machines, but would one really want to do that anyway?

Memory mapping is yet another thing you could consider. It's supported on pretty much every OS and as fast as you can get (though proper synchronization can be tricky).

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement