New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port to Python3 and WebKit2, flake8 fixes and license #3
Conversation
|
I've never seen this activity before. Reviewed as at 80aaf03.
Did you derive any of your work from #2? If so, please set commit author properly. @cristian99garcia, please confirm your activity should be LGPLv3+, and we'll fix the license file. |
@quozl Can you suggest what can be probably done in this case? Unfortunately I have no idea at this point of time. |
|
An activity would normally be idle unless it were animating something on screen. I guess the animation is the most likely cause. I've looked briefly three hours ago, but did not immediately see where execution time was being spent. You might use Python Profiling to determine what parts of the program are consuming the most execution time over a one minute operation. Profiling will likely identify the parts that manage the animation. You might use human static analysis of the source code to look for timers, frame rates, clocks, redraws, and other time or redrawing related program features. |
65c1306
to
bb1e495
Compare
|
Tested, thanks. There's no When the activity is shared, the buddy disappears in the joiners neighbourhood and this is shown in the logs. |
|
@chimosky wrote:
That's more likely to be because the activity isn't known to Sugar. Restart Sugar or rename the directory away and back into place. Still, now that we have max_participants of 1 it doesn't matter. @Saumya-Mishra9129 wrote: 8a626f3 What is the purpose of using |
@quozl |
|
Thanks. I agree, that seems the only use. I'm not personally willing to support systems that don't have @tchx84, @chimosky, what are your opinions? Do you want to support people using non-system interpreters at the expense of a second execve? |
I can see the reason why @Saumya-Mishra9129 used |
|
Thanks. I got an opinion from downstream that may be interesting. It looks like this is a wider issue. |
As we got no response here so I am fixing the license file. |
That was interesting, thanks for sharing. I'm yet to understand how the |
Happy to explain. Here's the sequence of the race, in time order;
It is a race condition because the open-for-read of the info file by the callback may happen before or after the info file is created. |
Metadata is updated in bc46b79 and License file is also fixed in ff93d08. Attribute error is also fixed by bb1e495. |
|
Thanks. Tested ff93d08. It looks like the CPU time is spent by redrawing without need. In area.py you can see how the orbit positions are updated at 10 Hz, but that the redraws are continuous in the idle loop. |
I tried removing redraw, but it does not worked for me |
|
Not enough to just remove |
Tested , It works fine for me. |
|
Thanks. Further patches made as part of my review, please review. |
|
Reviewed, It is fine for me. The work is almost complete here you can merge it. |
- Port to WebKit 2, - Port to Python 3, - Add license metadata and file to match source code, - Add missing setup.py, - Disable sharing, - Fix CPU looping and high power draw, - Remove selected body log message, - Remove #! lines from files that are not executed by shell, Co-authored-by: Saumya-Mishra9129 <saumyamishra9129853131@gmail.com> Co-authored-by: James Cameron <quozl@laptop.org>
|
Thanks all, and @cemeiq for the Port to WebKit2. |
@quozl @chimosky Kindly review.