Forum: PS2 Homebrew/Dev & Emu Scene - Topics relating to homebrew PS2 development and emulation. Stay current and up to date on the latest homebrew releases from the best devs on the scene.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: (PS2SDK) How to change main thread priority?
  

Results 1 to 2 of 2
  1. #1 (PS2SDK) How to change main thread priority? 
    masteries is offline Registered User
    Join Date
    Mar 2013
    Posts
    1
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Grretings PSX-Scene Coders and all interested public!


    I am new at this forum. Actually I am working in the port of BennuGD language to PlayStation 2 console
    (recently I added DualShock 2 vibration support to PS2 BennuGD port).

    Also I am the author of the multi-platform old school racing game "Masteries-Runners", you "google" about it.

    The BennuGD language is supported by SDL libraries; in the PlayStation 2 port I found an issue with the sound thread,
    I readed that this issue can be fixed by changing the main thread priority to 64, but due to my limited knowledge I donīt
    know how to accomplish this.


    Thanks in advance for the support!
    Masteries
    Reply With Quote  

  2. #2  
    SP193's Avatar
    SP193 is online now The fallen spartan...
    Join Date
    May 2009
    Location
    シンガポール
    Posts
    1,943
    Downloads
    0
    Uploads
    0
    Mentioned
    14 Post(s)
    Tagged
    3 Thread(s)
    Likes Given
    33
    Likes Received
    208
    Hi,

    This will change the main thread priority to 64:
    Code:
    ChangeThreadPriority(GetThreadId(), 64);
    Unmodified SCPH-77006 with SM 3.6
    SCPH-39006 with M-chip modchip, SCPH-10281 NA and refurb Seagate 80GB HDD
    SCPH-10000 v1.00 with SCPH-10190 PCMCIA NA and SCPH-20400 HDD unit
    PS2ESDL v0.823B

    やっほー 汗がひかる♪
    Reply With Quote  

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •