Commit Graph

26218 Commits

Author SHA1 Message Date
rdb 14f3cb0e40 tests: Add unit test for static property 2024-09-19 20:25:45 +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 e70d0b47fc distributed: Fix very minor memory leak 2024-09-19 14:20:35 +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
rdb bb5e4454fe putil: Add debug for oversleeping/undersleeping with M_limited clock 2024-09-16 21:41:52 +02:00
John C. Allwein e3f580763a
pview: add shift+r keyboard bind to reload all textures (#1678) 2024-09-16 16:02:45 +02:00
Timothy Choi 8caf582b32
refactor(distributed): Un-nest generateGlobalObject's applyFieldValues function (#1667) 2024-09-16 13:55:53 +02:00
rdb f5401b19fa Merge branch 'release/1.10.x' 2024-09-16 13:54:22 +02:00
rdb e2fb2d1241 cocoa: Prevent eating keyUp when switching to FS from macOS' FS 2024-09-16 13:39:16 +02:00
rdb c7bcec1ff5 cocoa: Exit macOS' fullscreen mode when switching fullscreen
Prevents black screen when switching to fullscreen
2024-09-16 13:39:16 +02:00
rdb 82b9a1266c cocoa: Fix error when switching to FS while macOS' FS is active 2024-09-16 13:39:16 +02:00
John C. Allwein e7604cb163 event: fix result refcount leak when awaiting AsyncFuture
Raising the StopIteration exception left the underlying
result with an elevated refcount which prevented it from
being cleaned up.
2024-09-14 15:59:05 -06:00
John C. Allwein cfe3885c0e
event: use the persistent python wrapper when appending task object (#1681) 2024-09-14 20:25:08 +02:00
rdb fc394e4c59 glgsg: Pass in osg_FrameNumber input via ShaderMatSpec mechanism 2024-08-23 21:08:50 +02:00
rdb cd68287b6a shader: Get all aggregate shader inputs (eg. lights) in one go
This means that p3d_LightSource[n] will be fetched once off the LightAttrib, written to the matrix cache, and then indexed into by the various ShaderMatSpec. This should be significantly more efficient, but the main aim is to prepare for a new binding system in the new shader pipeline

User structs are still an exception as of now
2024-08-23 16:29:46 +02:00
rdb 99225dfaef shader: Unify ShaderPtrSpec and ShaderMatSpec mechanisms 2024-08-23 16:29:42 +02:00
rdb 99f4034701 shader: Don't store on ShaderMatSpec, use scratch matrix instead 2024-08-23 16:29:38 +02:00
rdb dfc85b8a68 tests: Make shadowViewMatrix test less sensitive 2024-08-23 16:28:10 +02:00
rdb 833fdb5d36 readme: Update Python version in FreeBSD command
Python 3.7 is no longer supported in Panda3D anyway
2024-08-23 14:20:38 +02:00
rdb a8ca06ea47 tests: Don't fail Dial test if tkinter failed to import 2024-08-23 14:20:38 +02:00
rdb e2ad8f2a2f tests: Test additional properties of light source struct 2024-08-23 14:20:35 +02:00
rdb 2c5cebe7e0 display: Fix shader gen regression for more than 2 lights 2024-08-23 14:20:20 +02:00
rdb d5d0b80dd3 tests: Add unit tests for GLSL light, material, fog structs 2024-08-23 12:35:01 +02:00
rdb 76ffef38d1 display: Allow passing whole state into dispatch_compute()
This is mainly useful for unit testing
2024-08-23 12:34:57 +02:00
rdb babd3a070d display: Fix docstring formatting 2024-08-22 15:52:48 +02:00
rdb 9e87af9dd7 linmath: Fix compiler warning with gcc 14 2024-08-14 19:09:20 +02:00
rdb 8d1524b675 distort: Fix unprotected debug output 2024-08-14 19:09:08 +02:00
rdb 78ace53dbe dtoolutil: Fix typo in pfstream causing compiler warning 2024-08-14 19:08:49 +02:00
rdb ddaeb05367 Fix compilation when building without bison 2024-08-14 19:08:16 +02:00
rdb d3bb769a36 makepanda: Support overriding build of interrogate with env vars
[skip ci]
2024-08-13 12:28:02 +02:00
rdb 7f88f6de24 makepanda: Silently ignore --no-maya flags
[skip ci]
2024-08-13 11:24:58 +02:00
rdb ad4ecbcc16 makepanda: Remove Autodesk Maya plug-ins
These now live at https://github.com/panda3d/maya-egg

Fixes #1584
2024-08-13 11:06:31 +02:00
rdb fff9ea594c Split off 3ds Max exporter to a separate repository
It now lives at https://github.com/panda3d/max-egg-plugin

See #1584
2024-08-13 10:59:33 +02:00
rdb 712300c9f1 Fix prebuilt bison cxx files includes to work with CMake build
Change makepanda to generate without the .yxx extension so that the include name is generated properly
2024-08-13 00:01:35 +02:00
rdb 805f36ff92 CMake: Only export Tools target if BUILD_TOOLS is on
[skip ci]
2024-08-12 16:46:47 +02:00
rdb 4ca495d828 CMake: Add separate BUILD_TOOLS option to build binaries
This is separate from BUILD_PANDATOOL, which builds the pandatool tree
2024-08-12 16:39:20 +02:00
rdb c8390ae7d5 CMake: install assorted pandatoolbase libraries 2024-08-12 16:32:24 +02:00
rdb 243d59bf37 workflow: Remove step to build host interrogate for emscripten
This is now fetched automatically by makepanda as of e50465e8303bb42c3ae656f5f896cb958eb2e4ed
2024-08-10 16:55:03 +02:00
rdb 8d2407d553 Delete cppparser and interrogate from tree
These tools now live in https://github.com/panda3d/interrogate/

See also #1074
2024-08-10 16:55:03 +02:00
rdb ce4b79750c makepanda: Stop building interrogate
Instead, install it using pip.  If you don't like this, submit a PR or use CMake
2024-08-10 16:55:00 +02:00
rdb c9cddb8d92 CMake: Stop building interrogate from tree
Instead, either build it externally (BUILD_INTERROGATE) or accept INTERROGATE_EXECUTABLE / INTERROGATE_MODULE_EXECUTABLE settings
2024-08-10 16:54:12 +02:00
rdb e776c819b8 makewheel: Exclude interrogate from panda3d wheel
This will be available separately as panda3d-interrogate wheel, built from https://github.com/panda3d/interrogate

Fixes #1074

[skip ci]
2024-08-10 13:00:53 +02:00
Drew Rogers 37152710b7 showbase: Add functions to get interval for Iris Transitions 2024-08-09 15:05:43 +02:00