Page 1 of 2 12 LastLast
Results 1 to 10 of 46

Thread: Multithreaded resource loading

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Quote Originally Posted by Luuk van Venrooij
    To bad that this approach requires a context switch
    I switch context only one time - for creating second context. After that all threads working without switching and waiting

  2. #2
    WILL
    Here the MacOS X version of demo compiled under MacOS X 10.6.3
    Last edited by Andru; 04-10-2010 at 11:48 PM.

  3. #3
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    Downloaded! I'll get back to you once I have time to run it after work. I'm running 10.6.4 (Snow Leopard) so it should be compatible I'm sure.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  4. #4
    PGDCE Developer de_jean_7777's Avatar
    Join Date
    Nov 2006
    Location
    Bosnia and Herzegovina (Herzegovina)
    Posts
    287
    I tried your demo and it works. I assume that the music stopping when switching to different windows is intentional?

    My PC is:
    OS: Windows 7 Ultimate
    CPU: Athlon II X2 240
    GPU: Sapphire Radeon HD4850 512MB
    Existence is pain

  5. #5
    Quote Originally Posted by de_jean_7777
    I assume that the music stopping when switching to different windows is intentional?
    Yes, and it must continue playing after returning the focus to demo.

  6. #6
    PGDCE Developer de_jean_7777's Avatar
    Join Date
    Nov 2006
    Location
    Bosnia and Herzegovina (Herzegovina)
    Posts
    287
    Quote Originally Posted by Andru View Post
    Yes, and it must continue playing after returning the focus to demo.
    It continues playing.

    I also tried it on another PC, at my work.
    OS: Windows XP Professional SP3
    CPU: Intel Pentium Dual E2200
    GPU: Intel 82945G (i945G) integrated

    It worked on that PC too. If it works on the Intel card with shoddy OpenGL drivers, it should work anywhere.
    Existence is pain

  7. #7
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    Well I gat back from work and gave it a run. For the most part it runs just fine, graphics display and the sound clip plays too without any popup errors. However the one bug I found was that most of the faces were showing a block of glitchy and random static instead of their respective sprite. Here is a couple of screenies to show basically what it was doing.

    demo08_screen01.jpgdemo08_screen02.jpg

    Go ahead and send me an update or tweaked version if you like. I can be your 'real test run' on the current iMacs if you like.

    My system specs are:

    CPU: Intel Core i7 (Quad Core)
    GPU: ATI Radeon HD 4850
    Screen Res: 2560 x 1440 (27" screen)
    RAM: 4GB DDR3
    OS: Mac OS X 10.6.4
    Jason McMillen
    Pascal Game Development
    Co-Founder





  8. #8
    Quote Originally Posted by Andru View Post
    I switch context only one time - for creating second context. After that all threads working without switching and waiting
    You need to switch the context. Otherwise your rendering commands will be send to the wrong threads if you want to handle drawing onscreen.

  9. #9
    Quote Originally Posted by Luuk van Venrooij
    You need to switch the context. Otherwise your rendering commands will be send to the wrong threads if you want to handle drawing onscreen.
    Why you so sure? OpenGL has a rule - "one thread - one context", so situation "will be send to the wrong threads" never will happen, and my demo works as you can see(only Windows version has a problem and it will be fixed the same way as MacOS X demo)
    Last edited by Andru; 05-10-2010 at 05:02 PM.

  10. #10
    AthenaOfDelphi
    Can you test this new demo for Windows, please?

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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