summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoDX9/Src/main.cpp
AgeCommit message (Collapse)Author
2013-09-14Overlay local gameinis over global gameinis instead of copying.Pierre Bourdon
Huge megacommit because a lot of things needed to be modified to make this possible.
2013-08-15Revert wrong indentation of some files. sorry for that one i was really ↵Rodolfo Bogado
convinced that i read that spaces must be used instead of tabs :)
2013-08-15re indentation to follow emulators code rules in some files I'm modifyingRodolfo Bogado
2013-08-13small correction, we cannot use dual source blending if separate alpha ↵Rodolfo Bogado
function is not supported
2013-08-11Add the ability to force Dual Source Blending in the configuration file.Rodolfo Bogado
this way everyone can check if their hardware support this feature in dx9
2013-08-11Mark the Direct3D9 backend deprecated.Rodolfo Bogado
sadly one important functionality is impossible to implement correctly in this backend(zcomplock). Still, I will try to fix as many issues as i can.
2013-07-22Implement zcomploc on OpenGL4.2+degasus
2013-05-01Clear the texture cache when a new dol is loaded via ES_LAUNCH. Fixes the ↵skidau
black screen in The House of the Dead 2. Abbreviated some of the information in the window titlebar.
2013-04-17New license header introduced to all Video based projects.Lioncash
2013-04-15Update the license file text (change SVN to Git) in all projects except Core ↵lioncash
since I was told a merge was happening soon. So for the sake of the merge going smoothly, I'll fix that when I remove the tab/space mismatches from the Core project. Also, some tab/space mismatches removed from VideoOGL, and some places I missed in VideoDX[number] projects. Now, the Core is literally the only project with tab/space mismatches (on a large scale).
2013-04-08use templates for primitive restartdegasus
2013-04-08Merge branch 'master' into primitive_restartdegasus
Conflicts: Source/Core/VideoCommon/Src/VideoConfig.h Source/Plugins/Plugin_VideoDX9/Src/main.cpp Source/Plugins/Plugin_VideoOGL/Src/Render.cpp
2013-04-04Fix for the hang after close caused by my previews perf queries commit.Rodolfo Bogado
Sorry for that. fix issue 6205
2013-04-03ups missing file for my last commit sorryRodolfo Bogado
2013-03-31Disable dual source blend until a valid support test is foundRodolfo Bogado
2013-03-31Use a brute force approach to test for Dual source blend support.Rodolfo Bogado
Sorry for a direct commit to the main branch but i need fast feedback, and i don't want to leave problematic code in the main branch for a long time. if this approach does not work for the drivers with problems will transform dual source blend to an option in the D3D9 backend. I appreciate the help of the people that tested my last commit and thanks to neobrain for pointing this solution.
2013-03-29first try of primitive restart index generatordegasus
Convert all quads+triangles into trangle_strip and uses primitive restart to split them. Speed up triangle_strip, but slows down all others primitive formats. Only implemented in ogl.
2013-03-29fixes for my last commitRodolfo Bogado
2013-03-28Implement dual source blending to avoid unneeded alpha pass.Rodolfo Bogado
this implementation does not work in windows xp (sorry no support for dual source blending there). this should improve speed on older hardware or in newer hardware using super sampling. disable partial fix for 4x supersampling as I'm interested in knowing the original issue with the implementation to fix it correctly. remove the deprecation label from the plugin while I'm working on it.
2013-03-23Mark the Direct3D9 backend deprecated.NeoBrainX
2013-03-06Merge branch 'master' into GLSL-masterdegasus
Conflicts: CMakeLists.txt Source/Core/DolphinWX/CMakeLists.txt Source/Core/DolphinWX/Src/GLInterface.h Source/Core/VideoCommon/Src/PixelShaderGen.cpp Source/Core/VideoCommon/Src/TextureCacheBase.cpp Source/Core/VideoCommon/Src/VertexManagerBase.cpp Source/Plugins/Plugin_VideoDX11/Src/VertexManager.cpp Source/Plugins/Plugin_VideoDX9/Src/VertexManager.cpp Source/Plugins/Plugin_VideoOGL/Plugin_VideoOGL.vcxproj Source/Plugins/Plugin_VideoOGL/Plugin_VideoOGL.vcxproj.filters Source/Plugins/Plugin_VideoOGL/Src/GLUtil.h Source/Plugins/Plugin_VideoOGL/Src/PixelShaderCache.cpp Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp Source/Plugins/Plugin_VideoOGL/Src/VertexManager.cpp Source/Plugins/Plugin_VideoOGL/Src/VertexShaderCache.cpp Source/Plugins/Plugin_VideoOGL/Src/main.cpp
2013-03-01Add documentation to PerfQueryBase interface.NeoBrainX
Remove the config field for perf queries (wasn't used for the new interface anyway). Few other cleanups.
2013-03-01Some cleanups.NeoBrainX
PE perf metrics officially declared unsupported for the D3D9 project (out of pure laziness, anyone who cares can implement them :P).
2013-03-01Merge branch 'master' into perfqueries.NeoBrainX
Conflicts: Source/Core/VideoCommon/Src/VideoConfig.h Source/Core/VideoCommon/VideoCommon.vcxproj.filters Source/Plugins/Plugin_VideoDX11/Src/VertexManager.cpp Source/Plugins/Plugin_VideoSoftware/Src/Rasterizer.cpp Source/Plugins/Plugin_VideoSoftware/Src/Tev.cpp
2013-02-26Split VideoBackend::Cleanup from Shutdown.degasus
First is called from ogl/d3d thread, second is called from emulation thread (x11...)
2013-02-18TextureCache: Fix D3D backends crashing when a game uses multiple 1x1-sized ↵NeoBrainX
LODs.
2013-01-14fix win compiler errorsdegasus
2012-12-27Merge branch 'master' into GLSL-masterdegasus
Conflicts: Source/Core/DolphinWX/Src/VideoConfigDiag.h Source/Plugins/Plugin_VideoOGL/Src/GLUtil.h Source/Plugins/Plugin_VideoOGL/Src/Render.cpp Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp Source/Plugins/Plugin_VideoOGL/Src/TextureConverter.cpp
2012-12-23Fixes swprintf_s issues hopefully.Matthew Parlane
Also fixed an include not using correct caps. According to: http://connect.microsoft.com/VisualStudio/feedback/details/646532
2012-10-20Hey, long time no commits :).rodolfoosvaldobogado@gmail.com
So to compensate lets bring back some speed to the emulation. change a little the way the vertex are send to the gpu, This first implementation changes dx9 a lot and dx11 a little to increase the parallelism between the cpu and gpu. ogl: is my next step in ogl is a little more trickier so i have to take a little more time. the original concept is Marcos idea, with my little touch to make it even more faster. what to look for: SPEEEEEDDD :). please test it a lot and let me know if you see any problem. in dx9 the code is prepared to fall back to the previous implementation if your card does not support the amount of buffers needed. So if you did not experience any speed gains you know where is the problem :). for the ones with more experience and compression of the code please test changing the amount and size of the buffers to tune this for your specific machine. The current values are the sweet spot for my machine. All must Thanks Marcos, I hate him for giving good ideas when I'm full of work.
2012-10-09Add in GLSL setting again.Ryan Houdek
PS and VS making. Untested and won't work for now. Add in program shader cache files. Readd NativeVertexFormat stuffs. Add in PS and VS cache things. SetShaders in places. Fixed EFB cache index computations in OpenGL renderer. The previous computation was very likely to go out of array bounds, which could result in crashes on EFB access. Also, the cache size was rounded down instead of up. This is a problem since EFB_HEIGHT (528) is not a multiple of EFB_CACHE_RECT_SIZE (64).
2012-08-26D3D11: Implement some PE pixel performance metrics.NeoBrainX
Super Mario Sunshine is using a cool trick: To determine how much goop has been cleaned in ep. 6 of Sirena Beach, it counts the number of pixels that are input to the blending stage. For that it's using the PE performance registers ;) Fixes issue 1498.
2012-06-21Set g_texture_cache to NULL upon shutdown. Fixes a crash introduced in ↵NeoBrainX
previous commits.
2012-01-04initialize the uninitializednitsuja
2011-12-19fixed a freeze on emu shutdown in windows buildnitsuja
2011-08-21Make titlebar and about dialog fancy for cmake build.Jordan Woyak
Windows needs fixing.
2011-06-10just a little cleanup to maintain minimal interfacesRodolfo Osvaldo Bogado
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7591 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-05-31Fix applying anti-aliasing without having to open the gfx config. Thanks to ↵NeoBrainX
skid for pointing out the VerifyValidity problem to me ;) Fixes issue 4498. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7574 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-04-25Remove configuration profile support.NeoBrainX
I.e. revert most of the video configuration dialog changes since r7483. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7484 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-31Fixed issue 4141.(key press beeping) Initializing the video backend in the ↵Jordan Woyak
GUI thread seemed to be the cause for whatever reason. Hopefully other platforms don't hate this change. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7425 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-21* GUI Video-Settings changes:gnick79
- Removed recent ghanges about separate per-game Video Settings - Added "One Window 3-State Support" (very close to full implementation) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7391 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-21Moved per-game graphics configuration to the game-list right click menu. It ↵Jordan Woyak
will be too difficult to make the "profiles" drop-down thing work with 3-state vs 2-state checkboxes. The per-game settings now have "undetermined" states, except for the radio buttons(I'll fix that later). It's super hacky right now. Video config (probably all config stuff) could be redone. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7386 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-19Game-specific video settings:skidau
* Moved the config validity check to reflect the emulator enforced settings at the config dialog * Removed some obsolete validity checks * Corrected "EnablePixelLighting" typo in the ini files Fixes issue 4277. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7374 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-17Eliminated memory leaks of the save state code and put it in a namespace. It ↵Jordan Woyak
is prettier than before, but it could be better (less global usage). Other minor stuff. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7366 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-16More work on making dialogs close when escape is pressed, and some general ↵Glenn Rice
GUI code clean up. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7360 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-15A bit of cleanup to Core Init/Stop, Frame, and Main. Cleanup XAudio2 to ↵Jordan Woyak
attempt to fix the crash on stop(didn't help :p). For some reason CFrame::DoStop is called twice.(might be the issue) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7353 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-02Put the video prepare code back, and use the existence of the g_renderer to ↵Glenn Rice
determine if video prepare has been run or not. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7274 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-02If the DSP LLE can not find the needed ROM files exit the emulator without ↵Glenn Rice
crashing the application. Also reimplement soren's revision 7195 in a way that works on linux and windows. (This makes it easier to clean up the video backend if the DSP emulator fails to initialize.) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7271 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-28Convert GetUserPath to return a std::string instead of a const char *. This ↵Glenn Rice
simplifies its usage in most cases. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7265 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-25If video backend initialization fails, have the emulator die gracefully ↵Glenn Rice
instead of crashing the application. Also a little clean up of the passage of the video window handle to the backend and back. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7248 8ced0084-cf51-0410-be5f-012b33b47a6e