• Advertisement
  • Popular Tags

  • Popular Now

  • Advertisement
  • Similar Content

    • By Damnwing0405
      I am looking for talents to form a team of making a strategy base action game. Talents I am currently looking for are : -
      (I) Unity programmer (mobile)
      (II) Game designer
      (III) 3d Artist
      (IV) SFX Artist
      The attachment is some game concept for the game. All the concept will be turn into 3d or card form. The game will be strategy game where the players can form their own team and control the units in the battle field real time to fight against each others.  If you are interested to know more details please pm me or send an email to damnwing0405@gmail.com

    • By bsudheer
      Leap Leap Leap! is a fast-paced, endless running game where you leap from rooftop to rooftop in a computer simulated world.

      This is a free run game and get excited by this fabulous computer simulated world of skyscrapers and surreal colors in parallax effect. On your way, collect cubes and revival points as many as you can to make a long run.

      Features of Leap Leap Leap:
      -Option of two themes: Black or White.
      -Simple one touch gameplay.
      -Attractive art.
      -Effective use of parallax.
      To Download the game:
      Playstore: https://play.google.com/store/apps/details?id=com.avakaigames.leap
      Appstore: https://itunes.apple.com/us/app/leap-leap-leap/id683764406?mt=8

    • By BillyGD

      Play Flick Football 3D @ https://gamejolt.com/games/flickfootball3d/326078
      Check out our Facebook page @ https://www.facebook.com/FlickFootball3D/
      Flick Football 3D is a turn based football game inspired by the table top classic 'Subbuteo'.
      The game is currently in very early Alpha development. There is still a lot to be done before the first proper release but I have decided to release this playable version to get as much feedback as possible.
      The only game mode currently available in this release is the 'Practice Mode' which gives you control of both teams. Either play against yourself to get used to how the game works or play against friends and family on the same computer!
      Planned Future Features Include:
      -Take control of your own custom team in the single player campaign.
      -Play in online leagues and tournaments against other players in the multiplayer mode.
      -Fully customisable stadiums to make you stand out from the rest of the players.
      -Improve your players stats and skills by playing matches and setting up training sessions.
      Flick Football 3D is available for Windows, Mac and Browser.
      Thank you for viewing my game, all feedback is greatly appreciated. I can be contacted at; BillyGDev@outlook.com
      'Flick Football 3D' is also the development name for the game and I haven't yet decided what the full release will be called, so if you have any ideas please drop me a message!
    • By drcrack
      It is a combination of fundamental RPG elements and challenging, session-based MOBA elements. Having features such as creating your unique build, customizing your outfit and preparing synergic team compositions with friends, players can brave dangerous adventures or merciless arena fights against deadly creatures and skilled players alike.

      This time with no grinding and no pay to win features.

      We're still looking for:
      1) 3D Character Artist
      2) 3D Environment Artist
      3) Animator
      4) Sound Designer
      5) VFX Artist

      Discord https://discord.gg/zXpY29V or drcrack#4575
    • By Francisco Tufr
      Hi everyone! I'm currently working on a series of books about 2D Shader Development.

      The idea is to synthesize a bunch of techniques that are specifically useful for 2D, even if they work on 3D as well.

      I released the first book last week. It's 4.99 on Amazon or free on the series website, https://www.2dshaders.com

      This is an independent initiative, I don't work for any publisher whatsoever. The contents of the books are the result of a 4-year span where I started teaching this in Argentina and USA, always making the workshop better. Now I'm expanding it to make more sense in book form.

      I'd love to hear your opinions on the idea and if you get the book let me know what you think.

      By the way, the examples are in Unity, but the concepts from the book should be easily transferable to any graphics api/engine.

      Hope you like it!
  • Advertisement
  • Advertisement
Sign in to follow this  

Unity Process-wide global (part 3)

This topic is 4827 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

Continuing my older discussion, thought someone might find this interesting. The rationale was maintaining a single instance of a struct across an entire application *without* any external DLLs. There are a few concerns: 1. separate heaps - the worst case scenario is where one module initializes the runtime structure, and another ends up freeing it. I used the HeapAlloc() and HeapFree() API functions to transcend DLL boundaries and let users run whatever runtime library they wish to use. 2. discovering the address - this was a big sticking point. I wanted to use environment variables, but I had trouble sticking whatever I wanted in there. SetEnvironmentVariable() would stop storing the pointer address once it saw a null byte. I wrote a SerializablePtr template that is designed to store a process-wide pointer in environment variables by maintaining the invariant that the first five bytes are guaranteed to be non-zero. We have to contort the pointer address if it has null bytes in it, and store the changes in the lead byte. The last byte is a null byte, signalling the end of the "string." The result is a "string" that isn't human readable, but pretty fast to unpack. I tested it on Win98, as well as on XP, and it seemed to work fine. It is somewhat sketchy, but MSDN does not specify that the string must be composed of ASCII characters. 3. versioning - what if I rearranged the struct layout? What if one user is running version 1.0 of the library, and another is running 1.1? I decided that even though this is a header-only library, side-by-side execution should be possible. The environment variable name subsequently has the version number contained within it. Any data contained within it is specific to that version. Thoughts/comments/concerns welcome. I realize this is esoteric subject matter, but perhaps someone will derive inspiration for it. Happy New Year.

Share this post

Link to post
Share on other sites
What happens when you run into process that are started with their own environment variable block, and/or don't inherit the system environment?

Share this post

Link to post
Share on other sites
Adding an env variable with a name that isn't in the table will create it right then. I just store the TLS index in the env table now and use a Meyers singleton-like method to cache the pointer in each translation unit.

Share this post

Link to post
Share on other sites
This is for your plugin system for OpenIM, right?

I'm still not sure exactly why you want to go about doing this

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
Nope, this is separate. Trying to formalize and release my class library for Win32, styled a bit after Qt/Wx/.NET's class libraries. Also trying to subvert link-time requirements for the internal machinations required to implement niceties such as asychronous timers while still generating small executables.

We'll see what the definition of small is going to be. I'm shooting for under 100k in a fairly basic application.

Share this post

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

  • Advertisement