Commit Graph

1852 Commits

Author SHA1 Message Date
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 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 1213d95560 Merge branch 'release/1.10.x' 2024-03-28 01:17:52 +01:00
kamgha aa58b4ccf2 palettizer: Fix magfilter on KW_mipmap
Closes #1631
2024-03-27 11:12:58 +01:00
rdb 40b824bdcc general: Consistently name all bam factory functions make_from_bam
See discussion in #1630
2024-03-18 02:38:41 +01:00
rdb 91c22a0fd6 pstats: Perf improvement for smooth mode in strip chart with dropped frames
This significantly improves PStats strip chart performance with high frame rates and high number of dropped frames
2024-03-15 12:45:19 +01:00
rdb 07902429b8 pstats: optimize method that searches for frame at given time
This method is called a lot in the strip chart code and the current implementation can be very slow with a large frame rate
2024-03-15 12:44:14 +01:00
rdb 9fd9e2868e pstats: Don't compute frame data for dropped frames
When a frame is dropped, the previous non-dropped frame is considered to be repeated, but the strip chart would compute new cached frame data for it, causing performance to be unusably slow at high frame rate data gathering even when most frames are skipped

This makes performance remotely usable in that situation
2024-03-14 10:22:18 +01:00
rdb f59be2d6f7 pstats: Performance optimizations for strip chart 2024-03-13 23:22:15 +01:00
rdb b50ad2efe9 eggprogs: Fix compiler warnings 2024-03-12 15:48:27 +01:00
rdb af27a9523c Merge branch 'release/1.10.x' 2024-03-12 15:39:16 +01:00
rdb 4f7b153c3f egg-qtess: Fix an unused variable warning 2024-03-12 15:32:44 +01:00
rdb d9052bae76 mac-stats: fix compile error with STDFLOAT_DOUBLE
[skip ci]
2024-02-12 11:46:25 +01:00
LD 676a6df593 pstats: Workaround for Gtk bug that causes UI to crash when a session is closed
As workaround for https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2029, we manually create a GtkFlowBoxChild instance and attach the label to it and increase its reference count so it it not prematurely destroyed when removed from the GtkFlowBox, causing the UI to segfault.
2024-02-01 00:34:13 +01:00
rdb a9f6e6fd8a pstats: Fix menus not updating in some conditions
Menus would only update properly if there was a strip chart open that would cause the PStatView to be updated

Calling `check_update()` in `new_collector()` doesn't work properly because the views haven't been updated there yet; calling `do_update()` there does work around it but I think the better fix is just to make sure we always update the view so that the `check_update()` (which is also called by `idle()`) works properly
2024-01-30 12:24:12 +01:00
rdb 73360393df Switch use of Py_INCREF to new Py_NewRef function
This is more idiomatic, simplifies the code, makes it easier to port to eg. HPy later on, and makes it easier to use the limited ABI (where it can be optimized to a tail call) later on

A polyfill is provided for compatibility with Python versions 3.8 and 3.9
2024-01-29 17:57:53 +01:00
rdb b49dbaca2b Report errors if calls to `close()` fail 2024-01-25 12:33:20 +01:00
rdb 9145b6c729 Merge branch 'release/1.10.x' 2024-01-04 16:36:03 +01:00
kamgha 25b85041d5 egg-palettize: fix writing Magfilter
Fixes a typo that applied the value from the Minfilter to the entry of the Magfilter.

Closes #1585
2024-01-04 16:22:30 +01:00
rdb b7fa25f8f4 assimp: Disable loading .glb and .gltf via Assimp by default
Fixes #1537
2023-10-22 12:08:09 +02:00
rdb 3833a35fa9 Merge branch 'release/1.10.x' 2023-10-22 12:06:18 +02:00
rdb 0121e74aa4 assimp: Add assimp-disable-extensions config var (for #1537)
This can be used to disable certain extensions from being loaded via Assimp

Also makes the `get_additional_extensions()` method a bit more efficient by having it avoid string concatenation, using a temporary buffer instead
2023-10-22 11:59:30 +02:00
rdb d368fac3e3 pstats: Update macOS timeline view to show more of collector name
Now shows the parent collector name if there's room and a single character if there's no room for anything more, just like the other implementations
2023-10-14 14:25:45 +02:00
rdb 10110cbfff CMake: Build PStats port for macOS 2023-10-14 12:59:18 +02:00
rdb 71154492b9 pstats: Add macOS port
Closes #1531
2023-08-30 15:08:46 +02:00
rdb 577dc25130 pstats: Fix erroneous highlight in strip chart before oldest frame 2023-08-29 22:51:17 +02:00
rdb da57279d9a pstats: Fix GTK strip chart total label and window title not updating
...when navigating around in a session that is not being updated automatically (eg. loaded from file)
2023-08-28 13:04:05 +02:00
Disyer 0cf2a5f385 pandatool: Correct header guard names (#1525) 2023-08-05 14:50:48 +02:00
rdb 35348fd74a express: Do not rely on OpenSSL for MD5 hash support
These hashes are used in various places in the Panda codebase (for integrity checks, not for crypto), so using an internal implementation allows retaining this functionality when building Panda without OpenSSL.

Based on the following public domain implementation:
https://github.com/B-Con/crypto-algorithms
2023-02-22 16:47:14 +01:00
Brian Lach 5f83882858 palettizer: don't respect srgb flag for alpha textures 2023-02-14 20:08:14 +01:00
Brian Lach 52d59b2df7 add sRGB support to egg-palettize, sluminance to egg 2023-02-14 11:34:24 +01:00
rdb 5e26aae1ff cleanup: Fix assorted issues uncovered by clang-tidy 2023-02-12 18:17:03 +01:00
Disyer af4a1bc7a9 python: Use public PyErr_Occurred API instead of private macro
The _PyErr_OCCURRED macro was removed in Python 3.10, so we shouldn't keep any compat code left around for it
2023-02-12 02:36:57 +02:00
rdb b282e8920d Merge branch 'release/1.10.x' 2023-01-13 22:32:35 +01:00
rdb 2157f1162e pstats: Proper thread cleanup after a thread exits (PStats 3.2)
The thread will linger around in the server as long as there is data (so, it will be removed after `pstats-history` seconds)

Fixes #450
2023-01-10 14:37:39 +01:00
rdb 2e42400700 deploy-stub: Fix crash when running in Python 3.11
Fixes #1423
2023-01-09 13:19:09 +01:00
rdb 2aa2a35a9f pstats: Fix regression: crash when opening session file 2022-12-26 11:18:00 +01:00
rdb f258442b77 CMake: Fix compile error due to missing `-lm` for deploy-stub 2022-12-12 20:03:30 +01:00
rdb e1b4083d6d Merge branch 'release/1.10.x' 2022-12-12 17:19:10 +01:00
rdb fb14c29525 pstats: Server can handle new protocol version 2.3
It changes the following things:
* Changes the counts in the PStatFrameData from uint16 to uint32, since I was hitting the value limit in some heavy frames with Python profiling enabled - no good reason for this limitation, so this allows removing it later
* Adds a T_expire_thread message, which I can use later to fix #450

These features are not used on the client side, but will be used on master.  Adding these changes here now makes it possible to use a master client with a 1.10.13 version of the server (can be useful if you can't compile Panda on the host).
2022-12-10 19:45:29 +01:00
rdb 264fe5e057 pstats: Fix clock skew handling when frames arrive out-of-order 2022-12-07 15:01:39 +01:00
rdb 5032d41f43 pstats: Set window icon for PStats on Windows
Just using a stock image from imageres.dll for now, but it makes it a easier to spot and distinguish from other Panda3D apps in the task bar.
2022-12-07 14:30:20 +01:00
rdb 39744ac7de pstats: Fix save/load incompatibility with double-prec builds 2022-12-07 13:53:12 +01:00
rdb 3dbaf80841 pstats: Fix compile error on Windows with `STDFLOAT_DOUBLE=1`
Fixes #1408
2022-12-07 13:52:11 +01:00
rdb c82f95ad6b Merge branch 'release/1.10.x' 2022-12-06 20:02:35 +01:00
rdb 32ebe11b06 dist: Add an option to retain docstrings in compiled Python code
Fixes #1341
2022-12-06 15:21:39 +01:00
rdb ffbfdb22e0 dist: Add `prefer_discrete_gpu` option to force use of dedicated GPU
Currently only implemented on Windows.

Fixes #680
2022-12-06 15:20:57 +01:00