Debug proerties for added objects [patch] #32422
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#32422
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
%%%I have written a patch for the Blender to show debug properties from added objects.
Previously the debug properties only display the values of the object on the inactive layer.
I have postest some sreenshots on BlenderArtists.org
http://blenderartists.org/forum/showthread.php?264745-Debug-proerties-for-added-objects-patch%%%
Changed status to: 'Open'
%%%I'm moving this to the patch tracker.%%%
%%%Moved from Game Engine to Patches%%%
%%%Taking a quick look over the patch, it looks like it does more than mentioned in the summary. I'm guessing you've combined your original patch with this one? http://projects.blender.org/tracker/index.php?func=detail&aid=32291&group_id=9&atid=127
Please don't do that. The smaller and more specific patches are, the easier it is to review them and get them into trunk.%%%
%%%I don't know that that is a problem.
I have done this because of two reason.
So I decided to merge it manually. The DebugProperties2.patch schuld work with the aktual trunk.
But I uploaded now the patch without Angus patch.%%%
%%%Would it not be better to just make sure the scene's debug property list is getting updated when objects are added? This patch changes the time complexity of this part of the codebase from O(n) to something more resembling O(n^2), which would be better to avoid if possible.%%%
%%%Yes I you are right the fix is ugly and slow.
One way to increase the performance a little bit, is to stop iterating the properties after 100 properties.
Because my monitor has an resolution 1920x1080 can display 69 values.
I tried to extend the list to, but it is quite complex for me and I stick in some problems.
I tried to extend the list in the KX_SCA_AddObjectActuator with the method BL_ConvertProperties.
But i don't know where to get the parameters for this method.
At the moment I see some ways to get around this problem.
We also need a new method to delete the right parameters from the list if KX_SCA_EndObjectActuator is called.
Which one would be the best and will later work with libload.
Can you give me a tip.
%%%
%%%***************
Sender: Mitchell Strokes
It would be good to post this information to the tracker so others can see it as well.
You'll want to try and add to the debugproplist in KX_Scene::AddReplicaObject() and remove from the list in KX_Scene::NewRemoveObject().
%%%
%%%But adding the code KX_Scene::AddReplicaObject() instade of KX_SCA_AddObjectActuator don't help me with the main probem.
At the moment I think the solution number 2 is the best one. Because it will works with libload to.
Or can I get some where else the value from the Property "show_debug" button from from the external blend file if I use libload?%%%
%%%Meanwhile I found a solution for getting the "show_debug" button (solution number 3).
I made an new patch (DebugProperties3.patch) which is updating the scenes debug property list.
I have tested the patch with single, parent and group objects. Adding with python addObject() and libload also works.
I added a maximum of 100 properties to the debug list, because the most scenes can't display more.
I made a extended patch (DebugProperties4.patch) which two new python commands.
"debugObject " allows to add and remove all enabled debug properties from the given object from the display list.
"debugProperty" allows to add and remove debug property from the display list.%%%
%%%This is on the right track, but there are a few issues that I see. First of, GameLogic should not be using anything from Ketsji. It would also be nice to not need DNA either since GameLogic is supposed to be somewhat Blender independent (that's what Ketsji is for). Also, I don't know how I feel about the Python API. Since now this is going from a bug fix patch to a bug fix+feature patch. I could probably get the bug fix one into trunk in time for 2.64, but the Python API stuff would probably have to wait until 2.65.%%%
%%%I think only one way to remove the Ketsji and the DNA from the GameLogic is to move the AddObjectDebugProperties methods to somewhere else.
I moved it to the KX_Scene.cpp.
I added a new patch (DebugProperties5.patch)%%%
%%%Awesome, the only things left that I see are pretty nit-picky:
Either way, I'm assigning this to Campbell for final review and okay.%%%
%%%* I have copied show_debug_info = bool (prop->flag & PROP_DEBUG); from KX_ConvertProperties.cpp and forgotten to deleted the unnecessary conversion.
Thank you very much for your help and your time.%%%
%%%This patch breaks the test file from this report even further: http://projects.blender.org/tracker/index.php?func=detail&aid=27265&group_id=9&atid=306
While this patch doesn't need to fix the bug (although, that would be nice), it should at least not make things more broken than they are.
By the way, are there any open bug reports that relate to this patch?%%%
%%%I have compiled a actual version of blender with the DebugProperties6.patch and I can open, run and store the file from the bug report [#27265].
So I don't know what you mean with breaks the test file. If you mean that the non working property will not displayed, yes that is correct.
But displaying a non working property doesn’t make sens for me. That only confuse new Blender users.
Sure a Patch should not brake something. Therefore I have made an tread on Blenderartists http:*blenderartists.org/forum/showthread.php?264745-Debug-proerties-for-added-objects-patch and one on Blendpolis http:*www.blendpolis.de/viewtopic.php?f=15&t=40768&start=20 where I have a compiled version of the latest debug patch. But I only get one download.
Thanks for the bug report I haven't tested it with non instanced DupliGroups so I never recognized that this is not working.
I have changed the patch, now non instanced DupliGroups are also working.
Actual patch is DebugProperties7.patch.
No I don't know any other relate bug reports.
%%%
%%%I'm looking to finally commit this patch soon. But, since it's been a few months, and I know you've been doing some testing, are you aware of any issues with the patch, HG1? There were some minor problems in applying the latest patch, but easy enough to fix.%%%
%%%I tested it today again and found an issues.
For comparing the size of the list ( DEBUG_MAX_DISPLAY 100) I used capacity() instead of size().
I have tested it against:
I have uploaded a new patch (DebugProperties8.patch) which calculate amount of properties that can displayed on the screen.
This feature comes from the bigger [#33701] BGE debug API and actuator patch and is also well tested.
It saves the time (Overhead) for the non displayable properties. I also leave the DEBUG_MAX_DISPLAY 100 inside to save looping time.
%%%
%%%Fixed a bug from the last patch.
The properties would not display correctly if a overlay scene is active.
A other problem is the the properties are stored in a list per scene.
So the properties are always displayed in the scene order and not in the order how they are added.
The only way to fix that is to make a list for all scenes. But this will complicate some things.
But I think for now we can live with this issue.%%%
%%%I'd like to commit this as soon as we hit bcon1. So please remind me if I forget.%%%
%%%This is now in trunk since the ge_dev branch merge (r58423).%%%
Changed status from 'Open' to: 'Resolved'