Search found 16 matches
- Tue Feb 07, 2023 2:31 pm
- Forum: Developers corner
- Topic: Parallelization of recompute
- Replies: 8
- Views: 1432
Re: Parallelization of recompute
Where is the code from runString to recompute? That is python interpreter code - in itself not important. The important part is what is being executed in "runString", i.e. the interpreted python code itself. What is it doing, does it need to have the result of the recompute immediately? H...
- Wed Feb 01, 2023 10:19 pm
- Forum: Open discussion
- Topic: Hang on spreadsheet cell copy?
- Replies: 25
- Views: 3186
Re: Hang on spreadsheet cell copy?
The issue is Windows Accesibility hitting all cells in the table, even if they are empty. The correct solution would be to implement an accessibility interface for the SpreadsheetGui::SheetTableView . The other way (blech) is to disable accessibility features on the spreadsheet if you are blocked by...
- Wed Feb 01, 2023 4:17 pm
- Forum: Developers corner
- Topic: Parallelization of recompute
- Replies: 8
- Views: 1432
Re: Parallelization of recompute
Any code that executes into python, or is executed from python is subject to a global lock, to prevent concurrent modifications of python structures. It is a big issue with multiprocessing on python. See https://wiki.python.org/moin/GlobalInterpreterLock As soon as you start a new thread, it will tr...
- Mon Jan 30, 2023 7:35 pm
- Forum: Developers corner
- Topic: Parallelization of recompute
- Replies: 8
- Views: 1432
Re: Parallelization of recompute
Hey, it's python :) The global interpreter lock will throw a spanner in everything that is trying to call into it. You can try and use a fiber to serialize all calls to python to allow C++ code parallelization . There _may_ be some wins, if the C++ code is where the perf issue lies. The idea would b...
- Sun Jan 29, 2023 3:02 am
- Forum: Developers corner
- Topic: PropertyExpressionEngine - Issue in buildGraph
- Replies: 4
- Views: 764
Re: PropertyExpressionEngine - Issue in buildGraph
Ok, so the actual property isn't exactly 21mm. Python console expands it to: >>> App.ActiveDocument.Sketch081.Placement.Base.y 20.999999999999986 And the result for the Axle MountThickness is >>> ActiveSketch.Constraints[19].Name 'AxleMountThickness' >>> ActiveSketch.Constraints[19].Value 5.99999999...
- Sun Jan 29, 2023 2:38 am
- Forum: Pull Requests
- Topic: [MERGED] PR #8228 - Completion fixes until 3062 is merged
- Replies: 4
- Views: 8205
Re: [MERGED] PR #8228 - Completion fixes until 3062 is merged
You need to ignore the completion suggestion, and it will work.
The pending pr https://github.com/FreeCAD/FreeCAD/pull/3062 has a fix for this, the main thing - adding a LOCAL access syntax, with a leading '.'
to unambiguously specify a property.
The pending pr https://github.com/FreeCAD/FreeCAD/pull/3062 has a fix for this, the main thing - adding a LOCAL access syntax, with a leading '.'
to unambiguously specify a property.
- Sun Jan 29, 2023 2:13 am
- Forum: Developers corner
- Topic: PropertyExpressionEngine - Issue in buildGraph
- Replies: 4
- Views: 764
Re: PropertyExpressionEngine - Issue in buildGraph
Trying with a smaller value yields the start of some artefacts, definitely a precision issue; probably stemming from how the property is being updated after the fix.
.0000001 : With -0.001 (14.999):
.0000001 : With -0.001 (14.999):
- Sun Jan 29, 2023 12:07 am
- Forum: Developers corner
- Topic: PropertyExpressionEngine - Issue in buildGraph
- Replies: 4
- Views: 764
Re: PropertyExpressionEngine - Issue in buildGraph
It looks like the change has some side effects in my assembly... EDIT: The side effect looks to be because of improved precision. Due to the way double precision works, I need to offset .001 mm. Also, we don't have a pure 6mm in the constraint below, but 5.999999999999993 for AxleMountThickness Issu...
- Sat Jan 28, 2023 10:57 pm
- Forum: Developers corner
- Topic: PropertyExpressionEngine - Issue in buildGraph
- Replies: 4
- Views: 764
PropertyExpressionEngine - Issue in buildGraph
Hi! EDIT: found the other existing issue!: https://github.com/FreeCAD/FreeCAD/issues/7489 POSSIBLY related - https://github.com/FreeCAD/FreeCAD/issues/7589, https://github.com/FreeCAD/FreeCAD/issues/7390 I had an issue where a constraint's value would not update after setting it to an expression. Af...
- Tue Jan 24, 2023 10:11 pm
- Forum: Pull Requests
- Topic: [MERGED] PR #8228 - Completion fixes until 3062 is merged
- Replies: 4
- Views: 8205
Re: PR #8228 - Completion fixes until 3062 is merged
This was just merged in. There is still an issue with contextual completions: If you're in a sketch and try to complete "Constraints.", but there is already a Document or an Object called "Constraints", the completer will think you're referring to that one. Adding the full sketch...