Re: [maemo-developers] gtk-infoprint

2006-05-28 Thread Eero Tamminen
Hi,

> Where you call sleep(), you should run the main loop manually or
> better, return  from the function if possible. If you need to do stuff
> in place of sleep(), you should follow the example in GTK+
> documentation:
>
> Example 2. Updating the GUI during a long computation.
>
>/* computation going on */
>...
>   while (gtk_events_pending ())
>gtk_main_iteration ();

It should of course be noted that normally the code should react just
to user (and network) events, not poll like above because on a device
with the battery that is extremely bad coding.

The above example is *really* meant only for the case when you have
some computation going which allows the main loop to be run occasionally
so that GUI events (like animation) can be processed.


- Eero

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] Toolchain still not working...new clues

2006-05-28 Thread Eero Tamminen
Hi,

> after lots of tries, I dropped Xnest and tried Xvnc.
> It also didn´t worked. I also tested running any X
> Application under scratchbox...also didn´t worked.

Have you allowed them to connect to the X server
(be it your desktop one, or Xephyr)?

With Xephyr you can use just "-ac" to disable all access
control (and set Xephyr not to accept TCP connections
with the standard "-nolisten tcp" X server option[1]).
With the desktop X you can do something like:
- outside Sbox:
xhost +localhost
  or just
- copy the ~/.Xauthority file from your home directory
  to your home directory inside Sbox

Desktop X servers are nowadays normally configured so that
they don't allow TCP connections, just local unix socket
connections[1].  "sb-init.sh" should be run with DISPLAY
environment NOT having the host address part, like this:
DISPLAY=:1 sb-init.sh start


- Eero

[1] This is done for obvious security reasons. X doesn't have
any security between the clients, all clients can manipulate
each others resources and events as they wish.

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] Re: gtkmm in scratchbox, build documentation

2006-05-28 Thread Eero Tamminen
Hi,

> Note that you will need graphviz dot, and that's not available directly
> in maemo. You will have to build it from source, and you will probably
> have a build problem because libxaw is not present.

Just configure GraphViz with "--without-x".


- Eero

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Happy birthday Maemo!

2006-05-28 Thread Kasper Souren

MoinMoin wiki is ok.  Would you also consider switching MoinMoin to
MediaWiki http://www.mediawiki.org/wiki/MediaWiki at this point in time.


I would be very happy with that. I must confess I am somewhat biased,
but I think MediaWiki is much easier to use and pages tend to look
better in the long run.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] SDL vertical blank (vbl) sync.

2006-05-28 Thread Visti Andresen
On Sun, 28 May 2006 14:47:29 +0200
[EMAIL PROTECTED] (Heike C. Zimmerer) wrote:

> Visti Andresen <[EMAIL PROTECTED]> writes:
> 
> > Hi I was wondering if anyone knows how to sync. the SDL_Flip to the
> > vertical blanking of the display.
> 
> You're sure there's anything like vertical blanking for the 770?  My
> understanding is that VBL is closely tied to the transmission of video
> data through an analog line.

Sort of, vertical blanking occurs when the electron beam retraces back to the 
top of the CRT screen.
And yes it has a dedicated analog line (on a vga/monitor cable, it is shared 
with the luminance/colour data on a composite signal).

> I doubt you will find anything like that
> in digital-only LCD circuitry.  There will, however, be some kind of
> display refresh which uses some timing of its own.  If you look that
> direction, maybe there's some interval which can be used for similar
> tasks.
As you mention internal TFT/LCD displays use different and usually digital 
(until the LCD/TFT controller chip) signalling.
But the controller chip still receives a "top of frame" or "vertical blank" 
signal (at least in those data sheets I have read for LCD displays).

Anyway I would like to sync the SDL_Flip's to the "top of frame" or "vertical 
blank" signal.

The reason for this wish is, that you really can't do anything animated if you 
refresh the display at a random point in time.
Okay you can, but there will be artifacts, these are caused by the top part of 
the display containing one frame and the bottom one containing the next frame.

For those not familiar with the problem I have attached two tiny programs 
(compiled for arm)

flashingTest. Displays some "random" colours, I wrote it to "benchmark" the 
graphics performance of the 770 and to detect the native screen format (its 
16bit R5G6B5 btw.). It do however show the artifacts.

vblSync. Was written especially to show the artifacts. The high DPI of the 770 
display makes them less noticeable but they are still there.

Oh and for those of you who still have the IceAge2 trailer that came with the 
770, the Nokia movie player also shows these artifacts quite clearly in the 
beginning where there are a lot of panning going on.

I can just hope that there are a "hacker" out there who knows how get this kind 
of "scanline" information out of the 770. Otherwise I'll just have to live with 
sub Amiga 500 graphics capabilities :)

> 
> - Heike
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers


flashingTest.tar.gz
Description: Binary data


vblSync.tar.gz
Description: Binary data
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] SDL vertical blank (vbl) sync.

2006-05-28 Thread Heike C. Zimmerer
Visti Andresen <[EMAIL PROTECTED]> writes:

> Hi I was wondering if anyone knows how to sync. the SDL_Flip to the
> vertical blanking of the display.

You're sure there's anything like vertical blanking for the 770?  My
understanding is that VBL is closely tied to the transmission of video
data through an analog line.  I doubt you will find anything like that
in digital-only LCD circuitry.  There will, however, be some kind of
display refresh which uses some timing of its own.  If you look that
direction, maybe there's some interval which can be used for similar
tasks.

- Heike
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] SDL vertical blank (vbl) sync.

2006-05-28 Thread Visti Andresen
Hi I was wondering if anyone knows how to sync. the SDL_Flip to the vertical 
blanking of the display.

While it is nice to get 47+ FPS while memset'ing the display, I would rather be 
synced to the display and avoid the tearing at the cost of FPS.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers