Commit Graph

4604 Commits

Author SHA1 Message Date
aignacio_sf 8ecd64e785 Forgot to remove lru.cxx in dxgsg9 add lru.cxx in display. 2006-01-10 21:49:20 +00:00
aignacio_sf 00482ececd Whoops! Needed to use EXPCL_PANDA instead of EXPCL_PANDADX. 2006-01-10 21:48:33 +00:00
David Rose 152ad1a173 fix has_origin assertion 2006-01-10 18:57:54 +00:00
aignacio_sf 1a31424198 Prevent buffers being created that are larger than the display by cutting the requested size in half until it is small enough. 2006-01-09 23:02:17 +00:00
aignacio_sf bd23b0968d Output to debug some shader caps. 2006-01-09 20:00:15 +00:00
aignacio_sf aba7296a4d added lru.cxx, lru.h 2006-01-06 19:11:23 +00:00
aignacio_sf 1d798c9df2 moved here from dxgsg9 2006-01-06 19:10:56 +00:00
aignacio_sf 00fe985041 moved to display 2006-01-06 19:10:02 +00:00
aignacio_sf a4590db6a6 update comments, ... 2006-01-06 19:08:54 +00:00
aignacio_sf 52d7042b5c move lru to display directory 2006-01-06 19:08:29 +00:00
aignacio_sf 601f46896e Add check for redundant render state changes.
Added functions: set_render_state, set_texture_stage_state, set_sampler_state to replace direct calls to the DirectX version of the function.
2006-01-06 00:50:46 +00:00
David Rose 98c7d82385 declare methods const 2006-01-05 19:55:48 +00:00
David Rose c0c9347983 add set_scale() 2006-01-05 19:20:58 +00:00
aignacio_sf 068ae5eed3 Add EXPCL_PANDADX to classes.
Update some documentation.
2006-01-05 19:14:20 +00:00
aignacio_sf 56d607b8d0 Fix bug! 2006-01-05 18:42:33 +00:00
aignacio_sf a5159fdba3 Disable texturing before setting the render context in the cubemap case also. 2006-01-05 18:33:51 +00:00
aignacio_sf 56250d2c8d Use pre-defined constant 2006-01-05 18:27:58 +00:00
aignacio_sf cb9cc6576e Add some redundancy checks for render states. 2006-01-05 18:21:11 +00:00
David Rose b4e6656f49 cleanly disable texturing before rendering to a texture 2006-01-04 22:10:58 +00:00
David Rose 742c4173b8 use D3DTA_CONSTANT 2006-01-04 19:40:15 +00:00
aignacio_sf 54185735cd Avoid redundant setting of FVF. 2006-01-04 19:36:32 +00:00
aignacio_sf 4731e7e50e Unbind texture stages 0 and 1 before setting render context. 2006-01-04 19:35:38 +00:00
aignacio_sf 9ea324117a Fix an error reported by DirectX in debug mode.
Can't pass 0 for SetTextureStageState (..., D3DSAMP_MAXANISOTROPY, ... )
2006-01-04 03:10:53 +00:00
aignacio_sf 680b7878e4 Fix an error reported by DirectX in debug mode.
Can't pass 0 for SetSamplerState (..., D3DSAMP_MAXANISOTROPY, ... )
2006-01-04 03:07:23 +00:00
aignacio_sf ac39c20f8e Added debug more code.
Added a check to create a new depth stencil buffer if the render to texture size is bigger than the original depth stencil buffer.
Set depth stencil surface each time the render target is changed (this may or may not help the render to texture bug).
2006-01-04 01:36:31 +00:00
David Rose 80667761b4 use more net bandwidth 2006-01-04 00:31:28 +00:00
David Rose 8cef27663e optimizations, a few more interfaces 2006-01-04 00:31:00 +00:00
aignacio_sf c2eacaed78 Added creation of new depth stencil buffer if a dimension of the requested buffer size is bigger than the existing depth stencil surface.
Added error message support.
2006-01-03 19:41:10 +00:00
aignacio_sf f3110d821c Added forced creation of a depth stencil surface for render to texture. 2005-12-30 20:01:19 +00:00
aignacio_sf b75a855d53 Added some dxgsg9 error messages. 2005-12-30 19:36:20 +00:00
aignacio_sf 270d09a9d6 no message 2005-12-30 02:35:49 +00:00
aignacio_sf 8a8ecf20f4 Add preliminary fix to RTT 2005-12-30 02:35:27 +00:00
aignacio_sf a83ac32cc6 Don't destroy the LRU on Reset.
Remove useless comments leftover during DX8 to DX9 conversion.
2005-12-30 02:15:50 +00:00
aignacio_sf d0573a9544 Move Lru comment block from .cxx to .h 2005-12-29 21:37:38 +00:00
aignacio_sf 0e4acd7a33 Add more LRU stats. 2005-12-29 21:27:27 +00:00
aignacio_sf 7cefd816e2 Improve/fix comments for LRU config variables. 2005-12-29 19:06:58 +00:00
aignacio_sf 5ae5135044 Add more options and debug options for DX9 LRU. 2005-12-29 18:53:35 +00:00
aignacio_sf 49ccbd9c97 Remove setting average frame utilization to 1.0 after page in since it screws up the average. 2005-12-29 18:52:49 +00:00
aignacio_sf c1616b9810 Add DirectX LRU video memory management config variables:
dx-management
dx-lru-management
dx-lru-maximum-pages
dx-lru-free-memory-requirement
dx-lru-minimum-memory-requirement
dx-lru-maximum-memory-requirement
2005-12-29 02:50:54 +00:00
aignacio_sf eb8ae8461d Modify delta memory debug display. 2005-12-28 22:52:19 +00:00
David Rose b98eab780f publish ExecutionEnvironment 2005-12-28 22:48:09 +00:00
aignacio_sf 55a02393d7 Add a retry when allocating/creating textures, vertex buffers, and index buffers.
Added a fail-safe if DirectX can't allocate video memory.
2005-12-28 20:25:33 +00:00
aignacio_sf 9a84565fd8 Some formatting changes to adhere to Panda coding style guide. 2005-12-28 18:40:48 +00:00
aignacio_sf 49915c3080 add mutex 2005-12-28 02:26:29 +00:00
aignacio_sf 750bae7b34 add some documentation
add more stats for lru
2005-12-28 00:09:47 +00:00
aignacio_sf 412e67d036 add lru 2005-12-28 00:07:46 +00:00
aignacio_sf cd0b12a41b Handle the case where pre-allocated LruPages have run out by dynamically allocating new LruPages.
Fix and check for LRU system memory leaks.
Remove unused/bad code (old partial update).
Add unit test #ifdef
2005-12-27 19:30:04 +00:00
aignacio_sf 56c453f547 Add textures to LRU memory management.
Keep LRU disabled for now in GSG, so DX managment is still used.
LRU code needs more testing, ...
2005-12-23 21:02:29 +00:00
aignacio_sf 48f95c62b4 Fix updates getting stuck in one priority level.
It got stuck when the maximum updates is not reached.
Therefore the next start update was not updated at all.
2005-12-23 20:59:50 +00:00
aignacio_sf 44c8384f99 Turn off LRU memory management.
Switch back to slow DirectX managed for now.
2005-12-23 01:54:46 +00:00