Jump to content
Sign in to follow this  
anselm_eickhoff

Background: A Tale of Two Worlds

4 posts in this topic Last Reply

Recommended Posts

Interesting Read! It's always neat to read about the logic that goes into developing software, especially when said software is still under development. I wonder what that Super Secret Mindblowing Update is. I guess we're just gonna have to wait.

Hope everything else is going good for you as well. Look forward to the next proof of life update...;).

Share this post


Link to post
Share on other sites

This is nothing new and startling.  In the old days is was called a deadly embrace because A is trying to update B but can't because B is locked, but B is trying to update A, but A has set its lock because it is a critical section of the code.  This all requires adroit use of semaphores or gates on lists within objects or sometimes objects and/or lists of objects.  Modern computers are so fast that a general program pause could go by without the user noticing it while a save was in progress.  That is, the whole program simulation stops (freezes) momentarily while the save is organized in a buffer then can be released while the write progresses.

I've done a lot of transaction processing in my time, and you ought to try this will a couple of thousand users all trying to update the same set of files at the same time.  It has been solved for years.  You need to arrange it so that events within the simulation to be atomic (that is, each event is discrete and complete).  Where there are thousands of events going on, this becomes a horror show, but it can be done.  Acceptable response times for commercial applications like banking are on the order of three seconds or less.  I imagine for a graphics game 3,000 ms is an eternity, so it has to be much quicker than that for each thread.  Good luck.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an Account  

Sign up to join our friendly community. It's easy!  

Register a New Account

Sign In  

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Similar Content

    • By Larma
      My game crashes about 5 minutes into loading a map even on vanilla (-noWorkshop -noMods). I'm guessing it has something to do with my RAM based on similar posts, but  shouldn't 8gb of ram enough even for the un-modded game?
      The full log
      E: My specs:
      Operating System
          Windows 10 Home 64-bit
      CPU
          AMD FX-8320   
          Vishera 32nm Technology
      RAM
          8,00Gt Dual-Channel DDR3 @ 722MHz (9-9-9-24)
      Motherboard
          ASUSTeK COMPUTER INC. M5A97 R2.0 (Socket 942)   
      Graphics
          S22B300 (1920x1080@60Hz)
          V226HQL (1920x1080@60Hz)
          4095MB NVIDIA GeForce GTX 760 (Gigabyte)   
      Storage
          931GB Seagate ST1000DM003-1CH162 (SATA)  
          100GB Microsoft Storage Space Device (SATA)   
          930GB Microsoft Storage Space Device (SATA)   
      Optical Drives
          ASUS DRW-24F1ST a
      Audio
          Realtek High Definition Audio
    • By AmiPolizeiFunk
      Two different authors have had their assets break in the last 24h after trying to update them. I wonder if CO changed something? 
      broken satellite dish prop: https://steamcommunity.com/sharedfiles/filedetails/?id=904028991
      broken ferry: http://steamcommunity.com/sharedfiles/filedetails/?id=1111278454
       
      In the main menu when I went to "ASSETS", modtools spat out an Image Error. And C:S showed wrong thumbnails for those assets.
       
      anybody know what may be going on?
       
    • By AmiPolizeiFunk
      I frequently run walking or biking paths next to roads, painstakingly aligned for aesthetics w/ MoveIt. When I want to change the road type, or even simply change the network skin, it destroys all of my nearby paths. Is there a way to update a road type non-destructively? This has been a nuisance for a year now and I guess I finally feel like posting about it.
       
      I've had to either a. rebuild everything that it destroys, or b. drag stuff away from the update in advance, and then drag the stuff back. Since my stuff is usually heavily layered, both of these solutions suck. Do you guys have any ideas?
    • By Don_Pato

      2012, Jarunja City - The government became Tennis, a serious sport. In effect was built the Jarunja Open Stadium. This event is the most important in the region.
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       

    • By AmiPolizeiFunk
      As expected, my save failed to load. What's the protocol here? Should I disable all mods and try to add them back one-by-one?
       
      Let's help each other out by listing out mods that have been broken and should definitely be disabled. Who will go first?
  • Recently Browsing   0 members

    No registered users viewing this page.

×

Help Keep Simtropolis Online, Open & Free!

stexcollection-header.png

Get the best of the best from the STEX!

Expand your city with the best from the Simtropolis Echange. Make a donation and get one or all three discs today!

Make a Donation, Get a Gift!

We need to continue to raise enough money each month to pay for expenses which includes hardware, bandwidth, software licenses, support licenses and other necessary 3rd party costs.

By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

Each donation helps keep Simtropolis online, open and free!

Thank you for reading and enjoy the site!

More About STEX Collections