1) How did you yield the mail loop to allow for packet passing?  I've tried 
adding forced pauses, but that didn't seem to do anything.
2) What does it mean to 'fold' the network I/O and update?  I have not run 
across that term before.

I tried putting the socket control in a separate thread, but that crashes 
the program (no error, probably starvation).
Tried putting an app.EventLoop.has_exit = True, then moving the query 
outside the app.run in a separate while True loop, but it seems to only 
activate once.

On Monday, May 25, 2015 at 3:07:46 PM UTC-4, magu...@gmail.com wrote:
>
> I think your problem might be that your pyglet update loop is blocking 
> your net code from listening for/sending packets.
>
> When working with twisted <https://twistedmatrix.com/trac/>, I use 
> twisted's task.coiterate function, then yield my pyglet update loop every 
> cycle
> so the netcode can handle incoming/outgoing packets, otherwise it locks up 
> the netcode and only updates the pyglet 
> main loop when I schedule it. I don't normally work with sockets though, 
> but you could try folding your network I/O into 
> you update.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to