rdb
97d4e32a06
general: use nassert_raise instead of nassertv(false) et al
...
Even a brief error message in the assertion is infinitely more useful to a user who is not at home in the source code, especially for assertions that may reasonably be triggered by honest user mistakes.
2018-11-28 17:35:20 +01: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
rdb
9231694f8f
gobj: fix Python 3 support for GVADHandle::get_(sub)data/set_(sub)data
...
That said, you should really be using the buffer protocol; you can create a memoryview() directly around the GeomVertexArrayData.
2018-06-14 14:11:34 +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
39abc66025
gobj: reduce unnecessary use of threading primitives in constructors
2017-12-28 00:20:59 +01:00
tobspr
0fcfb8e372
New file headers, new comment style
2016-02-17 17:47:48 +01:00
rdb
4a91704958
add copy_data_from version that takes a Python buffer object
2013-10-29 12:14:47 +00:00
David Rose
372532346e
GeomVertexData::reserve_num_rows() and related changes--big performance improvement, especially on Windows
2011-03-12 21:42:34 +00:00
David Rose
27a65375d0
fix comment
2010-08-18 21:34:59 +00:00
David Rose
bc0529fce2
fix bug with set_subdata
2010-05-31 18:51:42 +00:00
David Rose
aefe3d35c2
merge dev_bam_2009 to trunk
2009-06-10 17:54:40 +00:00
David Rose
a1b5ffb21f
expand page size
2008-07-14 23:26:20 +00:00
David Rose
fb9c56432a
we are now using the modified BSD license
2008-05-28 18:37:20 +00:00
David Rose
f411404617
report redundant dups in analyze()
2007-07-23 22:02:42 +00:00
David Rose
0ebafd6c75
further fixes to bam loader ordering
2007-07-09 17:03:27 +00:00
David Rose
c60379d898
AttribNodeRegistry, ordering in BamReader::complete_pointers()
2007-07-07 20:34:16 +00:00
David Rose
5f1b029f42
NeverFreeMemory
2007-06-14 23:15:14 +00:00
David Rose
67771fb75c
better algorithm for finding available pages
2007-06-07 21:47:37 +00:00
David Rose
39dc3d9c3e
add allow-incomplete-render
2007-06-06 21:05:17 +00:00
David Rose
723a9bf257
remove vertex-data-allow-reread
2007-06-06 04:09:12 +00:00
David Rose
3e5249d89a
vertex-data-threaded-paging, pass 1
2007-06-06 02:50:38 +00:00
David Rose
36dfcf2437
fix memory leak
2007-06-03 20:16:00 +00:00
David Rose
aef3383a23
whoops, fix bigendian machines
2007-05-25 18:24:10 +00:00
David Rose
820a9fb99b
GeomVertexArrayData::get_modified() wasn't getting updated
2007-05-24 22:48:31 +00:00
David Rose
25159b2efa
vertex-data-allow-reread
2007-05-22 21:03:41 +00:00
David Rose
872c141de0
define preserve-triangle-strips
2007-05-19 07:07:41 +00:00
David Rose
547ff677d1
better vertex paging
2007-05-18 18:19:15 +00:00
David Rose
a50ae3fcbf
report "active" vertex data
2007-05-14 18:42:03 +00:00
David Rose
83967af7dc
vertex_data_compression_level
2007-05-13 17:23:45 +00:00
David Rose
6f2aae0c37
support flushing vertex data to disk
2007-05-13 15:59:59 +00:00
David Rose
0329972a41
go to pvector<uchar> instead of PTA_uchar for GeomVertexArrayData
2007-05-13 01:12:15 +00:00
David Rose
b943c36fae
First pass at memory-managed vertices. Might break threaded code.
2007-05-13 00:01:38 +00:00
David Rose
d87cae471d
more better pstats mem tracking
2007-05-10 14:40:52 +00:00
David Rose
d1a06d8f02
correctly release gsg on window close
2007-04-26 00:44:20 +00:00
David Rose
936412fae2
merge cow_thread_2007_04_12: make copy-on-write operations thread-safe
2007-04-19 18:23:10 +00:00
David Rose
63edecf517
faster sprite particles
2007-02-08 19:56:33 +00:00
David Rose
2b49dd6e5f
don't double-report texture mem usage in pstats
2007-01-18 20:11:44 +00:00
David Rose
5779007507
more memory tracking stuff
2006-11-24 22:59:44 +00:00
David Rose
26b20ce4ac
pstats tracking for texture and vertex data on main memory
2006-11-02 19:31:03 +00:00
David Rose
c8eb6c5a82
reduced need for read locks
2006-05-02 00:48:10 +00:00
David Rose
57338ee24d
better windows tau support; better threaded DeletedChain support; beginning PipelineReader classes
2006-04-20 04:03:16 +00:00
David Rose
c3303c70b2
make interfaces to move raw texture and vertex data through Python as strings
2006-04-14 00:28:04 +00:00
David Rose
8fbc824aab
make PGui more thread-safe
2006-02-16 23:45:05 +00:00
David Rose
1d2282a879
pipelining getting close; uprev bam version to 6.0
2006-02-14 19:07:47 +00:00
David Rose
79f1462eb1
mo' better pipelining
2006-02-09 23:47:29 +00:00
David Rose
bc0d509090
bam 5.0, new Geom implementation is now official
2005-06-30 17:42:21 +00:00