Re: [pygame] erratic behavior with 'display.update(Rect)'

2015-07-13 Thread Ian Mallett
On Mon, Jul 13, 2015 at 5:34 PM, Tom Rothamel  wrote:

> There isn't a way to update a portion of the display using OpenGL. OpenGL
> expects you to redraw the screen from scratch every frame, and then flip to
> the next frame.
>
> How are you drawing to the screen? Are you using GL calls? Or pygame blits
> to the screen surface? The later doesn't work with OPENGL.
>
​Yes and:

> Is it possible that the cause is that OPENGL is being used by pygame?
>
On Windows, afaik, this only happens if you request it with the
pygame.OPENGL flag. Nevertheless, inspecting the value of the following
should say for sure:
import os
print(os.environ["SDL_VIDEODRIVER"])
Pro-tip: IIRC, you can also *set* that value to whatever you like *before*
you initialize PyGame. Some values
.

Ian


Re: [pygame] erratic behavior with 'display.update(Rect)'

2015-07-13 Thread Tom Rothamel
On Mon, Jul 13, 2015 at 6:54 PM tom arnall  wrote:

>
> If display.update()' doesn't work with OPENGL, what do you use to
> update just one area of the display?
>
>
>
There isn't a way to update a portion of the display using OpenGL. OpenGL
expects you to redraw the screen from scratch every frame, and then flip to
the next frame.

How are you drawing to the screen? Are you using GL calls? Or pygame blits
to the screen surface? The later doesn't work with OPENGL.


[pygame] erratic behavior with 'display.update(Rect)'

2015-07-13 Thread tom arnall
Greetings!

I am seeing what seems to be erratic behavior with 'display.update()'
when used with a Rect argument. In all cases but one, it works fine
with 'display.update()'. In the exception case,
it has no effect on the referenced Rect area.

MY QUESTIONS

Is it possible that the cause is that OPENGL is being used by pygame?
The doc' mentions that 'display.update()' generates an exception when
used with OPENGL. I'm wondering whether instead of generating an
exception, it's being unstable.

If display.update()' doesn't work with OPENGL, what do you use to
update just one area of the display?

I'm using Debian Stable out of the box.

Regards,

Tom Arnall








On 7/10/15, Peter Shinners  wrote:
> I haven't been paying close attention to Pygame, but it doesn't seem
> controversial to say things have stalled. I haven't gotten much feedback
> from Rene, but I'd like to give him time to put something together. Some
> of the main things that may need help are:
>
> * Getting 1.9.2 actually released
> * Moving on to "Pygame 2", whatever that means
> * Catch up on the Bitbucket pull requests
> * Website replacement and love
> * Migrate forum to Reddit (or community forum)
>
> It seems there are still many great people involved with the Pygame
> project. Perhaps I can help by getting those people the control they
> need to make progress. I'm completely detached from things at this
> point, so I don't have any context to jump in and try to change
> anything. What parts of the project are going well these days?
>
>


-- 
..
Faced with the possibility of its extinction, every species finds
within itself powers unimaginable in the days of its complacency.

They make the words of sounds and things their property and use them
to divide us. But they will never own the words in our eyes.



..
A strong drachma and global crowdfunding to pay for  imports of
necessities until her economy recovers. Either that or more bankster
hell for all of us.