kamgha
c2866ea4ed
Fix includes for Windows on case-sensitive filesystems
...
Closes #866
2020-02-22 12:55:45 +01:00
rdb
dae762f52b
pstatclient: fix compile error when compiling without DO_PSTATS
2019-10-25 10:24:30 +02:00
rdb
08572f3c38
general: Fix a variety of ABI incompatibility issues with opt4 builds
2019-10-08 19:44:29 +02:00
rdb
f4926bff20
Fix a variety of ABI compatibility issues
...
We need third-party extensions that link with the Panda3D libraries to continue to work when shipping them with the optimized libraries that deploy-ng uses. To do this, we need the optimized build not to omit symbols that these extensions might depend on.
2019-09-16 03:33:09 +02:00
Sam Edwards
e13a4d6539
pstatclient: Never pass nullptr to memcpy
...
Even though the only time this happened was when the size was 0,
it's still undefined to pass memcpy a nullptr.
2018-09-03 16:10:40 -06:00
Sam Edwards
4695557a5d
general: Don't require BUILDING_* for static builds
2018-08-31 23:54:32 -06:00
rdb
886e1c2f16
general: fix many compilation warnings in GCC 8
2018-06-19 00:37:28 +02:00
Sam Edwards
b2bfb31114
general: Remove `using std::*` from headers
...
Also remove most `using namespace std;` statements. The only one that remains is in py_panda.h.
Closes #350
Closes #335
2018-06-14 16:04:49 +02:00
Sam Edwards
7e61891c09
general: Fix more DLL linkage and EXPCL_PANDA_ macros
2018-06-12 16:14:33 -06:00
Sam Edwards
7790f8429d
general: Fully qualify header references into the std namespace
...
Closes #341
2018-06-07 10:35:12 +02:00
Sam Edwards
e2b4353800
general: Replace NULL (and 0 as pointer) with C++11 nullptr
...
Exceptions to this replacement are:
- .c files
- Headers included by a .c file
- stb_image.h
- dr_flac.h
- Strings
- Comments
2018-06-03 16:35:13 -06:00
rdb
e0245d2777
First step towards eliminating `using namespace std;` ( #335 )
2018-06-03 20:32:23 +02:00
rdb
0bb81a43c9
express: make a thread safe weak pointer implementation ( #321 )
...
To access a WeakPointerTo in a thread-safe way, use something like this:
if (auto ptr = weak_ptr.lock()) {
..use ptr as regular PointerTo
}
The new implementation no longer needs a reference to be stored to all weak pointers on the WeakReferenceList; a mere count of weak pointers is sufficient. Therefore, callbacks theoretically no longer require a WeakPointerTo to be constructed.
The WeakPointerTo class is not actually atomic; it could be made so, but I don't believe it's worth it at this time.
2018-05-15 13:40:21 +02:00
Sam Edwards
47f7d3f297
general: Add headers explaining the renamed config_*.h
2018-05-14 02:36:42 -06:00
Sam Edwards
87c11d8018
pstatclient: Rename config_pstats to config_pstatclient
2018-05-14 02:36:42 -06:00
Sam Edwards
9dd37e9dbc
general: Add guards to ensure proper BUILDING_ macros defined
...
This is designed to sanity-check the buildsystem, ensuring that the
expected BUILDING_ macros are defined at the expected time. It
also helps catch cases where the wrong BUILDING_/EXPCL_ macros
are used.
2018-03-25 13:17:52 -06:00
rdb
dd2806c8bd
Mark constructors 'explicit' for which coercion makes no sense
2017-11-06 19:47:38 +01:00
rdb
f79fbf25c3
ShaderGenerator: big overhaul, don't generate more shaders than needed
2017-07-10 21:55:27 +02:00
rdb
36f2eda9ec
Fix name of "Buffer switch" pcollector in pStatProperties.cxx
2016-12-18 00:12:26 +01:00
rdb
9963fe2c3c
Fix a couple of compile warnings, reduce unnecessary includes
2016-06-23 22:59:50 +02:00
rdb
ce29ae490d
Interrogate improvements, more properties, MAKE_SEQ_PROPERTY
2016-05-11 00:16:53 +02:00
tobspr
0fcfb8e372
New file headers, new comment style
2016-02-17 17:47:48 +01:00
rdb
6480e82e3b
First pass adding properties to many Panda classes
2015-12-10 16:23:06 +01:00
rdb
db3ab953e4
Remove ppremake, genPyCode, and all hacks created to support them
2015-11-09 19:06:49 +01:00
rdb
18ad6d1543
Replace many int params with size_t params where appropriate, and work towards fixing type conversion warnings
2015-10-07 18:58:26 +02:00
rdb
11ed8a4d8d
Use dynamic type lookup for interrogate to eliminate inter-module dependencies
...
It is now no longer necessary to link to core.pyd
Also includes a slight coercion optimization for trivial types
2015-06-06 19:36:40 +02:00
Ed Swartz
4c5a540dc9
Add a color and config variable for the pstats "*" category
2015-05-31 10:27:52 -05:00
rdb
16e7831566
Remove executable permissions from files that don't need them
2015-04-05 15:41:49 +02:00
rdb
41184b1189
Optimizations to improve start-up time (esp. in JavaScript)
2015-04-04 19:05:54 +02:00
rdb
eaabc1bfa5
Add ConfigVariableColor
2015-02-05 13:34:52 +01:00
rdb
af15797a25
Many, many performance optimizations and enhancements
2015-01-07 19:30:01 +01:00
rdb
db0fd516a0
Add GPU profiling capabilities to PStats using OpenGL timer queries
2014-09-24 23:53:37 +00:00
David Rose
dfe16c64f6
rename all Panda-built libraries to begin with libp3 or libpanda
2011-12-06 02:39:21 +00:00
David Rose
dca824b5de
hey, this time I really found the ffmpeg crash.
2011-11-18 19:40:40 +00:00
David Rose
539b61571c
guarantee word alignment for AtomicAdjust stuff
2011-11-17 23:31:31 +00:00
David Rose
cb9b0f075d
PStats should use doubles consistently
2011-10-27 18:39:27 +00:00
David Rose
501470169f
stdfloat_double
2011-10-10 05:25:10 +00:00
David Rose
4785161374
squelch some more compiler warnings
2011-06-18 00:16:48 +00:00
Chris Brunner
547a72053c
support for #ifdef WIN64_VC instead of just #ifdev WIN32_VC alone
2010-05-28 21:09:22 +00:00
David Rose
264608d008
protect threaded pstats better
2009-01-22 23:44:03 +00:00
David Rose
c85f5e39f5
defer transmitting until frame has begin properly
2009-01-22 20:18:02 +00:00
David Rose
574403a39f
fix pstats mutex leaking
2009-01-22 00:17:07 +00:00
Zachary Pavlov
a46399c662
fix for non pstats
2008-11-19 22:35:11 +00:00
Zachary Pavlov
da5afd76e7
default constructor for non pstats pstatcollector
2008-11-18 20:22:39 +00:00
David Rose
58e0537e3c
wide interrogate improvements: sequence protocol, MAKE_SEQ, __setitem__, and parameter coercion
2008-11-07 21:12:42 +00:00
David Rose
ef771a796b
make sync primitives more similar to python function names
2008-10-14 00:07:05 +00:00
David Rose
09fe2062c2
fix problem at shutdown
2008-10-09 21:55:10 +00:00
David Rose
d4c2c9858d
SIMPLE_THREADS_NO_MUTEX -> LightMutex
2008-10-08 23:23:40 +00:00
David Rose
c740062d29
prevent deadlock on exit with pstats
2008-09-26 00:34:49 +00:00
David Rose
fd0af5b6ef
fix pstats-threaded-write in simple-threads case
2008-09-13 03:39:21 +00:00