Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: What is the usage of "use Gtk2 -init -threads-init"?

by llancet (Friar)
on Nov 10, 2009 at 01:53 UTC ( [id://806096]=note: print w/replies, xml ) Need Help??


in reply to Re: What is the usage of "use Gtk2 -init -threads-init"?
in thread What is the usage of "use Gtk2 -init -threads-init"?

Thanks a lot! I'm trying to understand all of that...

Replies are listed 'Best First'.
Re^3: What is the usage of "use Gtk2 -init -threads-init"?
by zentara (Archbishop) on Nov 10, 2009 at 13:03 UTC
    ... the big picture is this..... maintaining smooth event flow in the program's mainloop, and preventing memory usage from climbing ( mem cleanup)

    ... Perl will tend to hang onto memory, figuring if you used it once you will use it again....so tell the system to keep it allocated as yours, even though temporarily it is idle space

    ...and if you try to run a resource heavy video driver from your main program directly, it will bog down and become unresponsive...thus the IPC

    .. the display basics are this....iirc gstreamer will launch in it's own window, but i can't recall how many controls they give you...like stop ,start, rewind, go to frame, etc. .....so you can embed the gstreamer output into one of your own windows, where you can include buttons and enties for control ..... you will have to read the gstreamer docs and examples ( the c library ), and google for gstreamer tutorials

    ... see Perl/Tk front-end to mplayer for a Tk app which would do something similar....however, Wx is a different program...but it should give you some control ideas


    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://806096]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-28 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found