Commit Graph

106 Commits

Author SHA1 Message Date
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 a5610f217e Merge branch 'release/1.10.x' into incoming 2022-11-29 20:58:51 +01:00
rdb 867f60dcca pstats: Rename "Show code" collector to "Tasks"
Also remove outdated definitions from pStatProperties.cxx
2022-11-29 20:50:18 +01:00
rdb 7b9f2cd854 pstats: Support nested start/stop pairs in the server, accept 3.1
Currently, the client doesn't send nested start/stop pairs, but there is no good reason not to handle this case in the server, and in some cases it is useful to send them (I will soon make changes on master to take advantage of this).

Client version 3.1 indicates that the client may send nested start/stop pairs.
2022-11-29 15:48:02 +01:00
rdb 0a3733ccb9 pstats: GPU timing improvements; use same frame numbering everywhere
Timer queries are significantly more efficient, are synchronized to CPU time, and the synchronized frame numbering makes it possible to correlate stuff in the Timeline view
2022-02-20 17:33:40 +01:00
rdb d7bbcfb0b7 pstats: Some collector reorganisation:
- "App:Show code:General" is gone, it was causing too much trouble
- Replace odd "Client::GuiObjects" with "Nodes:GUI"
- Regroup "Dirty PipelineCyclers" underneath "PipelineCyclers"
2022-02-17 12:48:36 +01:00
rdb c7c1c683da pstats: Disable "App:Show code:General" collector for now
It is generating negative values, needs further investigation - maybe we need to restructure the whole hierarchy
2022-01-30 02:03:18 +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
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
Sam Edwards 87c11d8018 pstatclient: Rename config_pstats to config_pstatclient 2018-05-14 02:36:42 -06: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
tobspr 0fcfb8e372 New file headers, new comment style 2016-02-17 17:47:48 +01:00
Ed Swartz 4c5a540dc9 Add a color and config variable for the pstats "*" category 2015-05-31 10:27:52 -05:00
rdb eaabc1bfa5 Add ConfigVariableColor 2015-02-05 13:34:52 +01:00
rdb db0fd516a0 Add GPU profiling capabilities to PStats using OpenGL timer queries 2014-09-24 23:53:37 +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 85d94ff0c5 pstats pixel count for tinydisplay 2008-08-05 00:57:35 +00:00
David Rose 9198427dbc remove unreliable 'interpreter' memory category 2008-07-17 22:38:50 +00:00
David Rose 33e0cdcff1 whoops, sw sprites not k 2008-06-13 19:16:22 +00:00
David Rose fb9c56432a we are now using the modified BSD license 2008-05-28 18:37:20 +00:00
David Rose 07ee48ae07 manage texture memory for tinydisplay 2008-05-06 03:17:29 +00:00
David Rose 0cda3c165a time munge::geom 2008-03-26 00:05:51 +00:00
David Rose 93f85f9ef9 simpler do_issue_clip_plane() and do_issue_light(); more pstats calipers 2007-07-19 16:16:41 +00:00
David Rose af21534823 track Draw:Set State 2007-07-18 13:55:24 +00:00
David Rose 385e7be325 still more meminfo fixes 2007-06-29 15:53:27 +00:00
David Rose d52eb37b14 move some low-level mem tracking into MemoryHook, more mem tracking fixes 2007-06-29 01:39:09 +00:00
David Rose 8b76075133 repair pstats mem tracking 2007-06-28 04:12:14 +00:00
David Rose 68772fbb9e reorder vertex data collectors 2007-06-27 17:39:10 +00:00
David Rose 5f1b029f42 NeverFreeMemory 2007-06-14 23:15:14 +00:00
David Rose 3b7f43058b pstats transfer times 2007-06-08 14:43:14 +00:00
David Rose 3e5249d89a vertex-data-threaded-paging, pass 1 2007-06-06 02:50:38 +00:00
David Rose 9d16c5bf23 dx9 occlusion queries 2007-06-04 17:20:51 +00:00
David Rose c7bce135da occlusion tests 2007-06-01 22:16:05 +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 b943c36fae First pass at memory-managed vertices. Might break threaded code. 2007-05-13 00:01:38 +00:00
David Rose 63edecf517 faster sprite particles 2007-02-08 19:56:33 +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 70f9db5ec4 add ClockObject::M_integer and M_integer_limited; pstats clock wait 2006-10-20 17:38:22 +00:00
David Rose 4a369a0536 per-displayregion tracking of cull, draw times 2006-04-28 00:05:43 +00:00
David Rose 9e986fce40 make PStats more thread-friendly 2006-04-09 20:17:26 +00:00
David Rose e0825beb5f change color of App 2006-04-06 23:47:25 +00:00
David Rose 85ba9e05b8 occlusion test 2006-04-06 23:22:03 +00:00
David Rose d415ff755f disable State Cache by default 2006-04-06 18:10:23 +00:00
David Rose 5173168621 more pstats options with z-buffer 2006-03-29 23:37:46 +00:00
David Rose 91efb72ca7 move threading/pipelining stuff into new directory, reorganize in general 2006-03-28 23:59:32 +00:00
David Rose 83a6c42496 better pstats tracking of texture/vbuffer memory 2006-03-16 21:26:56 +00:00