• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 67 68 69 70 71 ... 117 Next »

Testers needed for refactoring of texture decode/upload code
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Testers needed for refactoring of texture decode/upload code
01-14-2011, 04:00 PM
#1
JamesDunne Offline
Junior Member
**
Posts: 21
Threads: 1
Joined: Jan 2011
Call for testers!
I'm in the middle of a rather large refactoring effort concerning the GC/Wii texture decoders and the code responsible for uploading decoded textures to the graphics card. I'm at a point now where I need testers to let me know how this affects speed in whatever games. I could test it all myself, but I don't have enough games or enough time to do it.

WHERE:
I'm using github so I can keep track of my own changes independent of the SVN repo and also so that I don't break anything for anyone doing other work in the SVN trunk.

For those of you who can compile a Dolphin build on your own, please clone this git repository from github: https://github.com/JamesDunne/Dolphin , build it and test some of your games for me. It's a nearly identical copy of what's in SVN so there should be no surprises if you're used to building off SVN.

WHAT:
This is an entirely experimental branch which focuses on optimizing the texture decode and upload procedure. The existing code in SVN is wasteful in that it:
  1. decodes the GC/Wii texture onto a temporary memory buffer in RGBA format
  2. locks the DX9 texture memory
  3. converts RGBA to BGRA on-the-fly while writing to the DX9 texture memory
  4. unlocks the DX9 texture memory which initiates an upload to the graphics card
This new branch is testing the idea of removing the temporary memory buffer and the unnecessary RGBA -> BGRA format conversion. We now decode into BGRA format directly into the DX9 texture memory with no intermediate copies needed. I'll have to check DX9 documentation but I hope that DMA transfers are being used to upload to the graphics card in this case. If not, then maybe that's a DX11 thing to investigate or maybe it's a different call in DX9. I'm not experienced in DirectX technology so I don't know yet, but I'll find out Smile

For OpenGL I'm going to look into using PBOs (pixel buffer objects) to make use of DMA transfers instead of CPU-bound copies to upload textures to the card. As of now in SVN this is being done with a normal glTexSubImage2D call which does use CPU-bound copies and forces the emulator to wait until the texture is uploaded which is not necessary to do. The emulator could be doing more useful things while waiting for some stupid texture to upload to the card. Fixing this to use PBOs will cause a significant performance increase for the OGL plugin and should hopefully bring Linux up to speed with Windows and DX9.

DX11 is last on my priority list since it should be a straightforward conversion of the DX9 code, I hope. I've disabled the SSE2 and SSSE3 optimizations that myself and Xsacha worked so hard on in the current SVN over the last few weeks. These need significant work in order to be compatible with decoding directly to BGRA instead of RGBA as they are now coded to do. The bulk of the work will be in fixing those optimized decoders to safely write texels near the texture boundaries. Since we're not using a temporary buffer anymore, we don't have the luxury of nice 8-texel aligned textures. The DX/OGL texture cannot be padded nor cropped quickly, so we must modify the decoders to accommodate this change.

Key testing configuration:
  • Use DX9 plug-in only. DX11 and OGL *will* break.
  • Disable OpenCL.
If someone could post a binary distributable of commit 4faf3aa, that'd be fantastic. I don't have time to do it right now, but I will consider it later if I don't get any significant feedback within a day or two.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Testers needed for refactoring of texture decode/upload code - JamesDunne - 01-14-2011, 04:00 PM
RE: Testers needed for refactoring of texture decode/upload code - emu-muncher - 01-14-2011, 04:08 PM
RE: Testers needed for refactoring of texture decode/upload code - Squall Leonhart - 01-14-2011, 04:10 PM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 01-14-2011, 04:40 PM
RE: Testers needed for refactoring of texture decode/upload code - NaturalViolence - 01-14-2011, 04:42 PM
RE: Testers needed for refactoring of texture decode/upload code - Link_to_the_past - 01-14-2011, 06:20 PM
RE: Testers needed for refactoring of texture decode/upload code - emu-muncher - 01-14-2011, 07:52 PM
RE: Testers needed for refactoring of texture decode/upload code - Squall Leonhart - 01-14-2011, 07:59 PM
RE: Testers needed for refactoring of texture decode/upload code - KarstenS - 01-14-2011, 10:52 PM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 01-15-2011, 02:11 AM
RE: Testers needed for refactoring of texture decode/upload code - neobrain - 01-15-2011, 05:33 AM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 01-15-2011, 05:43 AM
RE: Testers needed for refactoring of texture decode/upload code - StripTheSoul - 01-15-2011, 03:24 AM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 01-15-2011, 03:30 AM
RE: Testers needed for refactoring of texture decode/upload code - StripTheSoul - 01-15-2011, 03:38 AM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 01-15-2011, 03:44 AM
RE: Testers needed for refactoring of texture decode/upload code - NaturalViolence - 01-15-2011, 05:21 AM
RE: Testers needed for refactoring of texture decode/upload code - StripTheSoul - 01-15-2011, 05:54 AM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 01-15-2011, 05:57 AM
RE: Testers needed for refactoring of texture decode/upload code - NaturalViolence - 01-15-2011, 06:29 AM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 01-15-2011, 06:34 AM
RE: Testers needed for refactoring of texture decode/upload code - StripTheSoul - 01-15-2011, 06:45 AM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 01-15-2011, 06:49 AM
RE: Testers needed for refactoring of texture decode/upload code - StripTheSoul - 01-15-2011, 06:52 AM
RE: Testers needed for refactoring of texture decode/upload code - NaturalViolence - 01-15-2011, 06:56 AM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 01-15-2011, 07:00 AM
RE: Testers needed for refactoring of texture decode/upload code - NaturalViolence - 01-15-2011, 07:04 AM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 01-15-2011, 07:08 AM
RE: Testers needed for refactoring of texture decode/upload code - Jack Frost - 01-15-2011, 07:18 AM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 01-15-2011, 07:20 AM
RE: Testers needed for refactoring of texture decode/upload code - Jack Frost - 01-15-2011, 07:49 AM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 01-15-2011, 07:51 AM
RE: Testers needed for refactoring of texture decode/upload code - Jack Frost - 01-15-2011, 07:55 AM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 01-15-2011, 08:00 AM
RE: Testers needed for refactoring of texture decode/upload code - Jack Frost - 01-15-2011, 08:09 AM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 01-15-2011, 08:15 AM
RE: Testers needed for refactoring of texture decode/upload code - Jack Frost - 01-15-2011, 08:53 AM
RE: Testers needed for refactoring of texture decode/upload code - Metzelmaennchen - 01-17-2011, 06:22 AM
RE: Testers needed for refactoring of texture decode/upload code - neobrain - 01-17-2011, 06:33 AM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 01-17-2011, 06:46 AM
RE: Testers needed for refactoring of texture decode/upload code - Metzelmaennchen - 01-17-2011, 07:10 AM
RE: Testers needed for refactoring of texture decode/upload code - neobrain - 01-17-2011, 07:31 AM
RE: Testers needed for refactoring of texture decode/upload code - Metzelmaennchen - 01-17-2011, 10:31 AM
RE: Testers needed for refactoring of texture decode/upload code - StripTheSoul - 01-17-2011, 10:40 AM
RE: Testers needed for refactoring of texture decode/upload code - Metzelmaennchen - 01-18-2011, 10:00 AM
RE: Testers needed for refactoring of texture decode/upload code - neobrain - 01-19-2011, 12:02 AM
RE: Testers needed for refactoring of texture decode/upload code - Metzelmaennchen - 01-19-2011, 01:40 AM
RE: Testers needed for refactoring of texture decode/upload code - neobrain - 01-19-2011, 02:07 AM
RE: Testers needed for refactoring of texture decode/upload code - Metzelmaennchen - 01-19-2011, 03:07 AM
RE: Testers needed for refactoring of texture decode/upload code - neobrain - 01-19-2011, 04:23 AM
RE: Testers needed for refactoring of texture decode/upload code - StripTheSoul - 01-24-2011, 11:06 AM
RE: Testers needed for refactoring of texture decode/upload code - StripTheSoul - 01-31-2011, 07:39 AM
RE: Testers needed for refactoring of texture decode/upload code - IceD_X - 01-31-2011, 07:55 AM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 01-31-2011, 08:11 AM
RE: Testers needed for refactoring of texture decode/upload code - NaturalViolence - 01-31-2011, 09:26 AM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 02-01-2011, 03:09 AM
RE: Testers needed for refactoring of texture decode/upload code - NaturalViolence - 02-01-2011, 05:05 AM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 02-01-2011, 05:18 AM
RE: Testers needed for refactoring of texture decode/upload code - KHRZ - 02-02-2011, 08:56 AM
RE: Testers needed for refactoring of texture decode/upload code - NaturalViolence - 02-02-2011, 10:56 AM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 02-02-2011, 11:19 AM
RE: Testers needed for refactoring of texture decode/upload code - NaturalViolence - 02-02-2011, 11:40 AM
RE: Testers needed for refactoring of texture decode/upload code - JamesDunne - 02-02-2011, 01:03 PM
RE: Testers needed for refactoring of texture decode/upload code - inteGReddy - 02-02-2011, 11:11 PM
RE: Testers needed for refactoring of texture decode/upload code - neobrain - 02-03-2011, 01:04 AM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode