Commit Graph

12240 Commits

Author SHA1 Message Date
rdb c060b2f3fe linmath: Fix vector printing issues with big values on emscripten 2024-11-03 23:59:23 +01:00
rdb 8ff71aeb15 webgl: Fix precision issues with default shaders 2024-11-03 23:58:28 +01:00
rdb 6823634f60 cull: Use more efficient arena allocation for CullableObject 2024-11-03 16:24:14 +01:00
rdb 55fa0e9912 Merge branch 'release/1.10.x' 2024-10-31 13:13:00 +01:00
rdb 89c0371cbb putil: BamWriter doc fix, initialize _root_node field properly 2024-10-31 13:07:02 +01:00
rdb 2a6f4fc6ff putil: Fix file_texture_mode on BamWriter not being writable 2024-10-31 13:07:02 +01:00
rdb 32ad388a51 gobj: Don't try to resolve empty alpha filename when writing bam 2024-10-31 13:07:02 +01:00
rdb 6d54aee0c7 Remove runtime dependency on interrogatedb 2024-10-30 17:46:26 +01:00
rdb 7560a1edd1 Merge branch 'release/1.10.x' 2024-10-30 13:42:21 +01:00
rdb f47b34d2a1 Fix remaining uses of ._PyType member in extension code
This should be replaced with Dtool_GetPyTypeObject, hiding the implementation details a bit so that we can more easily change the underlying structure if we need later

Also adds Py_NewRef to py_compat.h, backporting from master
2024-10-30 13:26:34 +01:00
rdb 0ba2aadcd6 Introduce Py_IS_TYPE, use for Py_TYPE comparisons 2024-10-30 13:17:11 +01:00
rdb 64454b1c9f Replace direct uses of ob_type, which gives problems in nogil build 2024-10-30 13:17:11 +01:00
rdb 9cbc45b9bf collide: Handle CollisionBox bam read without 2D info 2024-10-28 11:57:27 +01:00
rdb 71e2b7fff6 collide: CollisionBox cleanup, remove redundant code, reduce mem use 2024-10-28 09:20:33 +01:00
rdb a1fd79c80b collide: Rewrite sphere-into-box collision test
More reliable, possibly also better performance (but haven't profiled)

Fixes #1673
2024-10-28 00:57:51 +01:00
rdb 3d432ed8b2 collide: Fix sphere coming out wrong end of sphere with respect-prev-transform
Even with respect-prev-transform, it was still possible to tunnel through another sphere if the new position is colliding with it but close to the opposing edge, since it would only activate the respect-prev-transform check if the new position isn't colliding.
2024-10-27 17:54:30 +01:00
rdb 5f96cc592e Merge branch 'release/1.10.x' 2024-10-27 09:40:52 +01:00
rdb d758d2b232 pgui: Fix crash when PGEntry removes itself w/ background focus
Fixes #1650
2024-10-24 16:41:56 +02:00
rdb 583f7366db linmath: Significant perf optimizations for decompose_matrix 2024-10-19 13:17:19 +02:00
Yonnji c6ed5acdc2 fix building panda (#1694) 2024-10-18 14:03:15 +02:00
gabe ad97e88a54 Enable OpenAL-Soft extensions for non-framework builds and add config for disabling HRTF (#1620) 2024-10-17 21:34:32 +02:00
rdb 905a7dd482 glgsg: Fix missing include 2024-10-17 16:23:36 +02:00
rdb 7c9c4cd435 gobj: devirtualize calls to GeomPatches::get_num_vertices_per_primitive() 2024-10-17 16:18:12 +02:00
rdb 822d35d15b putil: Minor SimpleHashMap::remove() optimization 2024-10-14 14:26:20 +02:00
rdb 777ab6746c display: Fix double-precision build
Fixes #1688
2024-10-14 12:05:57 +02:00
rdb 52a7224d6e Fix various compiler warnings 2024-10-14 12:05:27 +02:00
rdb bd4dc8a379 display: Fix ability to copy wdxGraphicsBuffer to RAM on DX9 2024-10-10 19:57:42 +02:00
rdb 30418158e8 dxgsg9: Allow getting alpha bits in buffer when host has no alpha 2024-10-10 19:57:14 +02:00
rdb a59c857359 dxgsg9: Replace old A2W10V10U10 format with A32B32G32R32F 2024-10-10 19:56:41 +02:00
rdb eac1cb57c4 dxgsg9: Add missing formats to DXTextureContext9::get_bits_per_pixel 2024-10-10 19:49:15 +02:00
rdb 05cf72e22f dxgsg9: Fix texture clear color not working for 3D textures 2024-10-10 19:48:50 +02:00
rdb 7557826c8b Merge branch 'release/1.10.x' 2024-10-10 19:48:37 +02:00
rdb cd2e3dfde9 dxgsg9: Fix crash on window event after close_window() 2024-10-10 01:08:54 +02:00
rdb beb49b3cd3 dxgsg9: Fix some format handling, support for r32f and rgba32f textures 2024-10-03 13:43:22 +02:00
rdb 0ea0d5fa2b dxgsg9: Fix crash when copying inverted framebuffer to texture RAM 2024-10-03 13:36:02 +02:00
rdb 51876c6116 dxgsg9: Fix crash with buffer when there is no depth buffer 2024-10-03 13:36:02 +02:00
rdb 37799dc3ce pipeline: Try to fix Windows compilation issue 2024-09-29 23:02:35 +02:00
rdb 89fcfa1fe9 Merge branch 'release/1.10.x' 2024-09-26 10:23:50 +02:00
rdb c05a63f4ae pipeline: Fix compile error without pipelining enabled
Closes #1684

[skip ci]
2024-09-21 10:55:05 +02:00
rdb beff684af3 Further thread safety changes for Python 3.13 free threading
See #1683
2024-09-19 20:43:06 +02:00
rdb 4b2fa45578 Make use of PyImport_GetModule function 2024-09-19 20:42:31 +02:00
rdb 5106fc879f Changes for compatibility with Python 3.13
Includes some preliminary work to make free-threading safe, see also #1683
2024-09-19 16:01:10 +02:00
rdb b32459ffa1 Merge branch 'release/1.10.x' 2024-09-19 15:51:25 +02:00
rdb cdafd81764 Fix compilation issues with Python 3.13 2024-09-19 15:47:50 +02:00
rdb d7ede81aa3 cocoa: Fix compile error with MacOSX 10.6 SDK 2024-09-19 11:15:44 +02:00
rdb a4faa802af cocoa: Remove autorelease pool in process_events()
We now have one around the entire frame, in graphicsEngine.cxx
2024-09-19 00:25:51 +02:00
rdb 442558bb2d Merge branch 'release/1.10.x' 2024-09-19 00:25:16 +02:00
rdb 9f493f588d display: Fix significant memory leak on newer macOS versions
It seems the Metal-based OpenGL driver uses autorelease a lot for resources that last only a single frame, so we need to create an autorelease pool around the frame lest the resources will only get cleaned up at application exit.
2024-09-19 00:23:06 +02:00
rdb 756fe2e72b cocoa: Fix a very minor memory leak in DisplayInformation 2024-09-18 23:51:09 +02:00
rdb b337f2a3da pipeline: Use a high-precision timer for Thread::sleep() on Win32
This is mainly used for clock mode M_limited, which is currently suffering from terrible imprecision on Windows.  This fixes that, making it possible to lower the value of sleep-precision down to 1ms.
2024-09-16 21:43:42 +02:00