Jump to content
Sign In to follow this  
Jazzmaster

Issues w/ Larger Cities?

36 posts in this topic Last Reply

Highlighted Posts

  • Original Poster
  • Posted:
    Last Online:  
     

    It doesn't really improve performance as much as it improves stability, I believe. Placing the entire load on one core isn't something I'm keen on; the fans blow a bit hard whenever I play SC4 on this notebook.

    SC4 can only use one core. My laptop has an i7 720qm, each core is clocked at 1.6 GHz.

    Disabling two of the cores can force the OS to clock the cores to around or over 2 GHz.

    I'm not concerned about heat as the most I ever got with SC4 and TF2 running at the same time was high 70 C.

    Oh, I know. And the heat isn't really an issue for me either, as I have two large vents in the rear of this computer that push the heat out quite nicely. Just wish it didn't have to all be on one core, but it's simply not possible. Oh well, right?


    Keep calm and take photographs.

    Deviant Art Page | The Railfans of Simtropolis | YouTube Channel | Flickr

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    It doesn't really improve performance as much as it improves stability, I believe. Placing the entire load on one core isn't something I'm keen on; the fans blow a bit hard whenever I play SC4 on this notebook.

    SC4 can only use one core. My laptop has an i7 720qm, each core is clocked at 1.6 GHz.

    Disabling two of the cores can force the OS to clock the cores to around or over 2 GHz.

    I'm not concerned about heat as the most I ever got with SC4 and TF2 running at the same time was high 70 C.

    Oh, I know. And the heat isn't really an issue for me either, as I have two large vents in the rear of this computer that push the heat out quite nicely. Just wish it didn't have to all be on one core, but it's simply not possible. Oh well, right?

    Don't wish for things. You might get them.

    What improvement do you think you can make on a simulation program that spends most of its time in one subprocess, namely the traffic path finder. Single threading is what I would use if I was writing this new. The GPU does all the multi-threading you need if it is used properly. It runs asynchronously with the rest of the program.


    Beware: Emancipated user.  No Windoze for me.
    The teacher opens the door but the student must enter himself. - Ancient Chinese Saying

    Every minute of hate in which one indulges oneself is sixty seconds of happiness lost.
    Music expresses that which cannot be put into words and that which cannot remain silent. -- Victor Hugo
    If you always do what you've always done, you'll mostly get what you've always got.
    JohnNewSig.gif
    "We have met the enemy, and he is us" - Walt Kelly

    Come join us at the Moose Factory

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    I suppose the only improvement I would make on a simulation game that spends most of its time in one subprocess, is to make it spend most of its time in this one subprocess without crashing so easily. :P


    Keep calm and take photographs.

    Deviant Art Page | The Railfans of Simtropolis | YouTube Channel | Flickr

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    How about using one thread exclusively for calculations, like the clock, expenses, population, etc. and a second thread just for loading the image files and things like that? Doesn't that make sense?

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    How about using one thread exclusively for calculations, like the clock, expenses, population, etc. and a second thread just for loading the image files and things like that? Doesn't that make sense?

    I would prefer splitting up the threads and assign them to a small specific task, great for processors with many slow cores and GPU might able to pickup the load of the small threads. The only issue is that it might increase the chance of a deadlock, two threads relying on each other but also competing for resources, and that would increase freeze-ups.

    I know a friend who accidentally coded his custom program to spawn thousands of threads that were dependent on each other regardless of the load placed on the program. Small wonder why there were so many freeze-ups.


      Edited by Loney  

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    There is a required technique in multi-threading called "critical section coding" in which a semaphore is set so that a process in this section of code cannot be pre-empted by another part of the same program. This facilitates inter-process communication.

    As a process enters the critical section it must attempt to set the semaphore. If the semaphore is already set by another process, the process trying to enter must wait for the process already in the critical section to exit, resetting the semaphore. Examples are updating a critical queue or a graphics frame buffer.

    The critical code must be bullet proof and fast. This kind of code is often written in assembly language to avoid as many overheads as possible. It has to be small, and is often interrupt inhibited as well. A failure in this area of code will generally cause the watch-dog timer of the system to declare a panic if too much time is spent in such code.

    If there is no watch-dog timer, a careless programmer can hang the whole system.


    Beware: Emancipated user.  No Windoze for me.
    The teacher opens the door but the student must enter himself. - Ancient Chinese Saying

    Every minute of hate in which one indulges oneself is sixty seconds of happiness lost.
    Music expresses that which cannot be put into words and that which cannot remain silent. -- Victor Hugo
    If you always do what you've always done, you'll mostly get what you've always got.
    JohnNewSig.gif
    "We have met the enemy, and he is us" - Walt Kelly

    Come join us at the Moose Factory

    Share this post


    Link to post
    Share on other sites

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

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

    Register a New Account

    Sign In to follow this  

    • Recently Browsing   0 members

      No registered users viewing this page.

    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

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

    STEX Collections

    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