Optimizations?

Discussion in 'Starbucks @ RunUO.com' started by Enroq, Nov 19, 2017.

  1. Enroq

    Enroq Sorceror

    Joined:
    Jan 28, 2011
    Messages:
    1,889
    Likes Received:
    221
    So I've been thinking about working on the runuo server. It would up my skills because whoever wrote it (mark I think?) is a master but when they did, I don't think the .Net TPL was available. Converting it from single threading to.. task parallelism would be good exercise to say the least.

    So I've been looking through the codes.. and I found this..

    Code:
                m_ProcessorCount = Environment.ProcessorCount;
    
                if( m_ProcessorCount > 1 )
                    m_MultiProcessor = true;
    
                if( m_MultiProcessor || Is64Bit )
                    Console.WriteLine( "Core: Optimizing for {0} {2}processor{1}", m_ProcessorCount, m_ProcessorCount == 1 ? "" : "s", Is64Bit ? "64-bit " : "" );
    How is counting the processors an optimization..? Like, uhh what?

    @Vorspire
     

Share This Page