Re: [pygame] Data aware jit/blit POC - drawing 1.25 to 1.45 times faster.

2017-03-31 Thread René Dudfield
Nice one.

That seems like something that will work quite with with pgzero.

I guess this could be a Surface style class (OptimisingSceneGraph) which
does all this scene graph change tracking business.

Another related technique this brings to mind... having command queues with
events, that cached the screen at certain points (like key frames). This
way it can go backwards in time and not have it take minutes to redraw
everything from the start. Not really sure that's at all useful for this.
It's mainly used for animations, and content creation apps.

If you saved all this drawing meta data in development, then it would be
quite a speed up for playing scenes for the first time too. Of course, if
they are somewhat static animations.




On Fri, Mar 31, 2017 at 11:10 PM, Daniel Pope  wrote:

> There's another "jit" I wrote a long time ago for my first Pygame game
> here: https://bitbucket.org/lordmauve/metalwork/src/
> b2b916858e8e8c63222ae609bcd836ab5b55f49b/robots/graphics/
> scenegraph.py?at=default&fileviewer=file-view-default
>
> It calculates dirty regions by comparing the blits that occur between
> successive frames.
>
> On Fri, 31 Mar 2017, 21:41 Daniel Pope,  wrote:
>
>> I *think* that alien is public domain or Creative Commons. There's a
>> whole asset pack. It doesn't come from Pygame Zero.
>>
>> On Fri, 31 Mar 2017, 16:41 René Dudfield,  wrote:
>>
>> Hello,
>>
>> I made a proof of concept for the data aware drawing thing I mentioned in
>> a previous email.
>>
>> Here's the proof of concept, and explanation:
>>
>>- https://github.com/illume/dataaware
>>- http://renesd.blogspot.com/2017/03/data-aware-jitblit-
>>drawing-125-to-145.html
>>
>> I used the alien image in the pygamezero tutorial as the example. To show
>> that this can be applied to pygamezero. But it can be applied to any engine
>> that draws images really.
>>
>>
>> cheers,
>>
>>


Re: [pygame] Data aware jit/blit POC - drawing 1.25 to 1.45 times faster.

2017-03-31 Thread Daniel Pope
There's another "jit" I wrote a long time ago for my first Pygame game
here:
https://bitbucket.org/lordmauve/metalwork/src/b2b916858e8e8c63222ae609bcd836ab5b55f49b/robots/graphics/scenegraph.py?at=default&fileviewer=file-view-default

It calculates dirty regions by comparing the blits that occur between
successive frames.

On Fri, 31 Mar 2017, 21:41 Daniel Pope,  wrote:

> I *think* that alien is public domain or Creative Commons. There's a whole
> asset pack. It doesn't come from Pygame Zero.
>
> On Fri, 31 Mar 2017, 16:41 René Dudfield,  wrote:
>
> Hello,
>
> I made a proof of concept for the data aware drawing thing I mentioned in
> a previous email.
>
> Here's the proof of concept, and explanation:
>
>- https://github.com/illume/dataaware
>-
>
> http://renesd.blogspot.com/2017/03/data-aware-jitblit-drawing-125-to-145.html
>
> I used the alien image in the pygamezero tutorial as the example. To show
> that this can be applied to pygamezero. But it can be applied to any engine
> that draws images really.
>
>
> cheers,
>
>


Re: [pygame] Data aware jit/blit POC - drawing 1.25 to 1.45 times faster.

2017-03-31 Thread Daniel Pope
I *think* that alien is public domain or Creative Commons. There's a whole
asset pack. It doesn't come from Pygame Zero.

On Fri, 31 Mar 2017, 16:41 René Dudfield,  wrote:

> Hello,
>
> I made a proof of concept for the data aware drawing thing I mentioned in
> a previous email.
>
> Here's the proof of concept, and explanation:
>
>- https://github.com/illume/dataaware
>-
>
> http://renesd.blogspot.com/2017/03/data-aware-jitblit-drawing-125-to-145.html
>
> I used the alien image in the pygamezero tutorial as the example. To show
> that this can be applied to pygamezero. But it can be applied to any engine
> that draws images really.
>
>
> cheers,
>


Re: [pygame] https://pygame.org/

2017-03-31 Thread Patrick Mullen
Thank you for the new site! So refreshing to see activity.

On Thu, Mar 30, 2017 at 9:17 PM, DiliupG  wrote:

> That's the way to go. SO much happening with Pygame this year can't even
> keep up! Great! :)
>
> On 31 March 2017 at 00:16, Al Sweigart  wrote:
>
>> Instead of imposing a timeout after a certain number of login attempts,
>> I'd recommend setting up Google ReCAPTCHA. I did this with a site I'm
>> developing and I was surprised how easy it was to set up:
>>
>> Go to this page logged in as your Google/Gmail user to add your domain:
>> https://www.google.com/recaptcha/admin#list
>>
>> This site has the setup guide: https://developers.goog
>> le.com/recaptcha/intro
>>
>> On Tue, Mar 28, 2017 at 11:09 PM, René Dudfield  wrote:
>>
>>> Emailed you privately about the login problem. I expect you may have
>>> been using a different email address.
>>>
>>> The 4 per hour on login urls is a limit which helps stop bots hacking
>>> into the website. It also helps to stop spammers creating lots of
>>> accounts/spam. I can't really remove that because of this. I can try to fix
>>> any login issues though, so legitimate users don't have issues logging in.
>>>
>>> I reset the ban for you, so you should be able to try and login 4 more
>>> times :)
>>>
>>>
>>> cheers,
>>>
>>>
>>>
>>> On Wed, Mar 29, 2017 at 7:20 AM, DiliupG  wrote:
>>>
 having login problems again! today! and this 4 per hour business is
 taking too much time. Can't you remove that or at least make it higher than
 that?

 On 14 March 2017 at 11:04, DiliupG  wrote:

> sounds good. I look forward to contributing to make this a great page
> and make it easier for all.
>
> On 13 March 2017 at 15:06, René Dudfield  wrote:
>
>> Thanks Diliup! I'm hoping it won't take too much time. I want to make
>> it as low amount of work as possible for the moderators.
>>
>> Will be in touch some time in the next week.
>>
>> cheers!
>>
>>
>>
>>
>> On Mon, Mar 13, 2017 at 9:20 AM, DiliupG  wrote:
>>
>>> I would like to volunteer to keep SPAM and abusive messages away
>>> from the pygame site if you guys would let me do it. I can spare a few
>>> hours each day. The documentation if FULL of it and maybe due to that
>>> reason now NO ONE can add even a positive comment.
>>>
>>> On 13 March 2017 at 12:04, René Dudfield  wrote:
>>>
 On Mon, Mar 13, 2017 at 5:24 AM, Bork Air <
 dan.fisher112...@gmail.com> wrote:

> again, your website looks like shit
>
> the original green one had some design
>
>
>
 Speaking of which...

 If anyone wants to help with the joyful job of helping to moderate
 abusive comments, please get in touch.



>>>
>>>
>>> --
>>> Kalasuri Diliup Gabadamudalige
>>>
>>> https://dahamgatalu.wordpress.com/
>>> http://soft.diliupg.com/
>>> http://www.diliupg.com
>>>
>>> 
>>> **
>>> This e-mail is confidential. It may also be legally privileged. If
>>> you are not the intended recipient or have received it in error, please
>>> delete it and all copies from your system and notify the sender 
>>> immediately
>>> by return e-mail. Any unauthorized reading, reproducing, printing or
>>> further dissemination of this e-mail or its contents is strictly 
>>> prohibited
>>> and may be unlawful. Internet communications cannot be guaranteed to be
>>> timely, secure, error or virus-free. The sender does not accept 
>>> liability
>>> for any errors or omissions.
>>> 
>>> **
>>>
>>>
>>
>
>
> --
> Kalasuri Diliup Gabadamudalige
>
> https://dahamgatalu.wordpress.com/
> http://soft.diliupg.com/
> http://www.diliupg.com
>
> 
> **
> This e-mail is confidential. It may also be legally privileged. If you
> are not the intended recipient or have received it in error, please delete
> it and all copies from your system and notify the sender immediately by
> return e-mail. Any unauthorized reading, reproducing, printing or further
> dissemination of this e-mail or its contents is strictly prohibited and 
> may
> be unlawful. Internet communications cannot be guaranteed to be timely,
> secure, error or virus-free. The sender does not accept liability for any
> errors or omissions.
> 
> **
>
>


 --
 Kalasuri Diliup Gabadamudalige

 https://dahamgatalu.wordpress.

[pygame] Data aware jit/blit POC - drawing 1.25 to 1.45 times faster.

2017-03-31 Thread René Dudfield
Hello,

I made a proof of concept for the data aware drawing thing I mentioned in a
previous email.

Here's the proof of concept, and explanation:

   - https://github.com/illume/dataaware
   -
   http://renesd.blogspot.com/2017/03/data-aware-jitblit-drawing-125-to-145.html

I used the alien image in the pygamezero tutorial as the example. To show
that this can be applied to pygamezero. But it can be applied to any engine
that draws images really.


cheers,