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
Frang
a91111183f
Merge pull request #1426 from Frangwhuf/MaskType
...
patch around non-exported return type
2023-01-09 09:49:07 -05:00
Cary Sandvig
89e27ad9db
patch around non-exported return type
2023-01-05 16:23:42 -05:00
Frang
275fe32079
create PY_EXTENSION and friends ( #1415 )
2023-01-04 20:54:53 +01:00
rdb
2d606c07e3
dtoolbase: Remove unused get_best_parent_from_Set()
...
This method is no longer used as of e6f870ece6f973fd57ecf57c62ec96a4a898cc6c
Fixes #1421
2023-01-03 23:09:35 +01:00
Cary Sandvig
b10b49bd6b
fix SocketStream::flush() covariant
2023-01-03 11:48:36 -05:00
rdb
a2aa8af973
Correctly support 4-component UV coordinates in generated shaders
...
Supports projective UVs, matching fixed-function pipeline behavior
2023-01-02 10:48:33 +01:00
rdb
b9cff34076
display: Fix incorrect EXPCL macro for ScreenshotRequest
2022-12-28 12:08:49 +01:00
rdb
4734bb9deb
display: Fix missing includes
2022-12-26 21:24:16 +01:00
rdb
cfd18bb16f
display: Add support for asynchronous screenshot download
2022-12-26 20:01:38 +01:00
rdb
d5fed54a0c
x11: Fix occasional crash on shutdown
2022-12-26 19:18:38 +01:00
rdb
0747f46055
event: Improve interface for adding tasks from C++
...
The order of arguments is now the same as in Python (with the callable first), sort and priority arguments have been added, and new tasks can be added directly to a chain
2022-12-26 19:10:01 +01:00
rdb
2aa2a35a9f
pstats: Fix regression: crash when opening session file
2022-12-26 11:18:00 +01:00
rdb
a2890c03de
collide: Allow creating dummy CollisionHandler
...
Useful for benchmarks or unit tests where the result does not matter.
2022-12-26 11:16:53 +01:00
Cary Sandvig
3247903d7b
add more HAVE_PYTHON
...
Also add some more #endif comments.
2022-12-23 13:38:46 -05:00
rdb
92185bcb28
Merge branch 'release/1.10.x'
2022-12-19 16:42:29 +01:00
rdb
0911040999
express: Fix compile error with GCC
2022-12-19 16:38:19 +01:00
rdb
896346b99f
gobj: Implement copy.deepcopy()
for Texture class
...
Actually ensures that the underlying RAM images are really fully unique.
2022-12-19 16:22:33 +01:00
rdb
e67cd74725
express: Implement copy.deepcopy()
for PointerToArray
...
It actually makes a unique copy of the underlying array.
2022-12-19 16:22:00 +01:00
rdb
0ace26a938
gobj: Fix double-precision colors not being clamped in GeomVertexWriter
2022-12-19 15:18:04 +01:00
rdb
eafcfe1d70
motiontrail: Fix Python implementation error in double-prec mode
2022-12-19 15:17:19 +01:00
rdb
e5a8eb5b1d
cocoadisplay: Fix Command+Q in green-button-style fullscreen mode
...
It seems macOS has an extra NSWindow without a delegate in this mode
2022-12-19 12:55:57 +01:00
rdb
7f916eeb74
gobj: Don't wastefully compute bounds for Geom with custom bounds
...
This was done by `get_nested_vertices()`, which now won't call the expensive `compute_internal_bounds()` if there was a custom bounding volume set.
2022-12-16 20:18:57 +01:00
rdb
aa852973f7
motiontrail: Switch usage_hint for geometry to UH_stream
...
Seems to better match the actual usage.
2022-12-16 20:16:14 +01:00
rdb
e08a502c88
motiontrail: Calculate bounding volume much more efficiently
...
A lot of time was going into updating the bounding volume.
2022-12-16 20:15:13 +01:00
rdb
833c3d37f7
gobj: Compute nested vertices separate from internal bounds in Geom
...
This prevents having to recalculate the internal bounds (which may be quite slow to compute, but not actually necessary if there are user bounds present) to get the nested vertices
2022-12-16 20:13:41 +01:00
rdb
32297ecd02
showbase: Fix some members not showing up in API documentation
2022-12-16 19:37:49 +01:00
rdb
42372e139c
motiontrail: Update API documentation
2022-12-16 19:37:28 +01:00
rdb
c366dab405
motiontrail: Further cleanup of CMotionTrail code
2022-12-16 18:18:12 +01:00
rdb
8354e175cf
Merge branch 'release/1.10.x'
2022-12-16 17:36:04 +01:00
rdb
86c3ec7827
doc: Add release notes for 1.10.13
2022-12-16 17:16:21 +01:00
rdb
81ea202dea
samples: Add new motion trails sample
...
Co-authored-by: Entikan <momojo@rocketship.com>
2022-12-16 16:20:52 +01:00
rdb
19186781f3
motiontrail: Clean up and optimization of C++ implementation
2022-12-16 16:14:06 +01:00
rdb
9cb60ccd93
cocoadisplay: Fix oversized window getting an awkward offset
...
We currently do the centering based on the total screen size, not the screen size that macOS actually lets us use.
See #1312
2022-12-16 16:07:58 +01:00
Daniel
24c14296c0
direct: Clean up broken usage of "types" module with Python 3
2022-12-15 20:29:33 +01:00
rdb
fdcfaf69b0
interrogate: Optimizate creating Python wrapper instances
...
Fewer function pointer calls by moving the wrapper creation logic to the downcast function
This also paves the way for some classes to have custom wrapper creation logic
2022-12-15 20:25:48 +01:00
rdb
cce46b5edb
motiontrail: Set start_color
and end_color
in add_vertex()
2022-12-15 20:23:55 +01:00
rdb
5912630e01
Merge branch 'release/1.10.x'
2022-12-15 19:59:00 +01:00
rdb
38528b797b
downloader: Initialize winsock even if nativenet is compiled out
...
Fixes HTTPClient when static linking if nativenet is not used and therefore init_network() is compiled out
2022-12-15 19:51:18 +01:00
rdb
8ab37b8804
motiontrail: Add easier way to call add_vertex()
...
Currently, you must pass in a function, which is a little awkward compared to just passing in a position. Now you can just pass in a vertex position, similar to the C++ interface.
2022-12-15 17:58:46 +01:00
rdb
154223d075
motiontrail: Clean up and document MotionTrail class
2022-12-15 17:58:23 +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
cd984732b7
pgraph: Make bounds_type
property writable
2022-12-10 19:45:29 +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
3254c6d329
pstats: Optimize PStatFrameData (de-)serialization
...
This can be slow (hundreds of us, up to multiple ms) with large amounts of data points, this makes it an order of magnitude more efficient
2022-12-10 19:45:29 +01:00
rdb
d48e23f234
pstats: Indicate how to disable rate limit
2022-12-10 19:45:26 +01:00
rdb
75b12fe6e2
express: Fix a comment in datagram.cxx
...
[skip ci]
2022-12-10 19:06:39 +01:00
rdb
a9e5d84d27
notify: Fix crash when using set_ostream_ptr from Python
...
Also allow passing in None
Fixes #1371 (and maybe also #319 )
2022-12-09 17:34:27 +01:00
rdb
1375d38725
showbase: Fix assorted issues with GarbageReport:
...
* Use of removed `types.InstanceType`
* New-style classes are not reported very neatly
* Extreme amount of digits in report due to float division
Fixes #1304
2022-12-09 17:34:27 +01:00