SDL Digest, Vol 44, Issue 22

Hi Jesse,

I using Ubuntu version 10.04…

Marco Aurelio> Send SDL mailing list submissions to

sdl at lists.libsdl.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
or, via email, send a message with subject or body ‘help’ to
sdl-request at lists.libsdl.org

You can reach the person managing the list at
sdl-owner at lists.libsdl.org

When replying, please edit your Subject line so it is more specific
than “Re: Contents of SDL digest…”

Today’s Topics:

  1. Re: IME testers needed (Windows) (dewyatt)
  2. Re: Slowing down animation (CWC)
  3. Re: Slowing down animation (Kenneth Bull)
  4. SDL 1.3 no Ubuntu (@marcoaurelio_at_mall)
  5. Re: SDL 1.3 no Ubuntu (Jesse Palser)
  6. Re: SDL 1.3 no Ubuntu (Jonathan Dearborn)
  7. [1.2+OpenGL]-Play mpg Movie To Screen? (Jesse Palser)

Message: 1
Date: Fri, 13 Aug 2010 18:29:37 -0700
From: “dewyatt” <Daniel.Wyatt at gmail.com>
To: sdl at lists.libsdl.org
Subject: Re: [SDL] IME testers needed (Windows)
Message-ID: <1281749377.m2f.25196 at forums.libsdl.org>
Content-Type: text/plain; charset=“iso-8859-1”

Jjgod Jiang wrote:

In windowed mode, candidate list shows correctly in all three IMEs I
tried.

So I guess what’s missing is the fullscreen mode support.

  • Jiang

SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Glad to hear it worked.

Yes, fullscreen mode is the whole problem.
Specifically I think the d3d renderer is the problem.
You can try:
set SDL_VIDEO_RENDERER=d3d
testime --fullscreen
And go through the candidate list to see what I mean.
In a program like testime that only redraws when necessary, it’s unusable.
In a program that redraws as much as possible, it will flicker constantly.

With the gdi renderer, it’s not a problem.
I even got it to work properly in the opengl renderer in my test code.
(I think the opengl renderer is broken in my repo so
SDL_VIDEO_RENDERER=opengl will not work)
But I guess the d3d renderer does not want to cooperate with any GDI
rendering.
It’s a shame to have to draw a custom candidate window because of one
renderer but it seems necessary.

-------------- next part --------------
An HTML attachment was scrubbed…
URL:
http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20100813/e2213eb8/attachment-0001.htm


Message: 2
Date: Fri, 13 Aug 2010 19:43:26 -0600
From: CWC
To: SDL Development List
Subject: Re: [SDL] Slowing down animation
Message-ID: <4C65F4BE.3090807 at blackfoot.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Kenneth Bull wrote:

On 13 August 2010 14:20, CWC wrote:

m_frame = 0; optimizes better than m_frame = -1; (XOR instead of MOV),
That’s incorrect, they execute at the same speed.

I’ve even seen stuff like this compiled as XOR eax,eax NOT eax.
Anyway, m_frame = 0; compiles smaller than m_frame = -1; even if it’s
the same clock cycles. I really don’t see any reason to use -1 here.

You could do this though, if you reorder Clips[]:
Draw(Clips[–m_frame]);
if (!m_frame) m_frame = 3;

You’ll save a bit on the conditional expression this way.

and you’re better off using unsigned where possible.

This is totally arbitrary.

Not entirely. It doesn’t make much difference here though.

So if it’s not entirely arbitrary, but it doesn’t make much difference,
describe the difference it doesn’t make much of?

You would get at least slightly better performance like this:

Draw(Clips[m_frame]);
++m_frame;
if (m_frame > 2)
m_frame = 0;

Though your readable version would probably still be slower than your
performance version due to the temporary value from the post
increment.
That’s exactly the point.

I’m saying “probably” since the temporary may be optimized out (if
m_frame is not declared volatile), In which case the readable version
is identical to mine. I think this is part of what John’s complaining
about.
So your suggestion is that, compiler willing, your code might run nearly
as fast as mine “probably”?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Message: 3
Date: Fri, 13 Aug 2010 23:03:15 -0400
From: Kenneth Bull
To: SDL Development List
Subject: Re: [SDL] Slowing down animation
Message-ID:
<AANLkTimdYeDv0U3WfHveC+sZLzOW_fziHiNF=QfzZ1LB at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On 13 August 2010 21:43, CWC wrote:

I’m saying “probably” since the temporary may be optimized out (if
m_frame is not declared volatile), In which case the readable version
is identical to mine. ?I think this is part of what John’s complaining
about.

So your suggestion is that, compiler willing, your code might run nearly
as
fast as mine “probably”?

Other way around.

Anyway, it’s time to drop it.


Message: 4
Date: Sat, 14 Aug 2010 10:26:32 -0300 (BRT)
From: @marcoaurelio_at_mall
To: sdl at lists.libsdl.org
Subject: [SDL] SDL 1.3 no Ubuntu
Message-ID:
<1720.187.37.143.185.1281792392.squirrel at www.mallagoli.com.br>
Content-Type: text/plain;charset=iso-8859-1

Hello,

I’m working on a game using the SDL library and Ubuntu Linux 1.2;
I’m having problems in the speed screen update. I wonder if it is possible
utiizar SDL version 1.3 and how to achieve the same for Ubuntu Linux.

Regards,

Marco Aurelio Mallagoli


Message: 5
Date: Sat, 14 Aug 2010 10:06:08 -0400
From: Jesse Palser
To: SDL Development List
Subject: Re: [SDL] SDL 1.3 no Ubuntu
Message-ID: <4C66A2D0.1060100 at aol.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 08/14/2010 09:26 AM, @marcoaurelio_at_mall wrote:

Hello,

I’m working on a game using the SDL library and Ubuntu Linux 1.2;
I’m having problems in the speed screen update. I wonder if it is
possible
utiizar SDL version 1.3 and how to achieve the same for Ubuntu Linux.

Regards,

Marco Aurelio Mallagoli


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hi,

SDL 1.3 is still in development and is not recommended for your game.
Also SDL 1.3 in not available to install on most Linux’s.
(user would have to download, compile, and manually install 1.3).

I would recommend you stay with SDL 1.2 for your Linux game.
If the speed of screen drawing is too slow for your game,
I would recommend you add OpenGL to SDL 1.2.

Also, what Ubuntu you using? the current version is 10.04…

Jesse
16BitSoft®
Video Game Design Studio
www.16BitSoft.com


Message: 6
Date: Sat, 14 Aug 2010 10:48:27 -0400
From: Jonathan Dearborn
To: SDL Development List
Subject: Re: [SDL] SDL 1.3 no Ubuntu
Message-ID:
<AANLkTi=6TNBzZhUww0fsGhRzvx3Up+JAaMLXvLZNoamo at mail.gmail.com>
Content-Type: text/plain; charset=“iso-8859-1”

There are ways to optimize rendering a bit if you’re willing to explain
what
you’re doing. Are you using SDL_DisplayFormat and SDL_DisplayFormatAlpha?
If you’re interested in checking out SDL 1.3, you can build it from
source
very easily on Ubuntu after you grab the HG version:
http://www.libsdl.org/hg.php

I also have a binary version of an older revision:
http://code.bluedinosaurs.com/SDL/SDL%201.3/

SDL 1.3 can definitely be used for a game in its current state, but be
aware
that a couple of interfaces are still changing.

Jonny D

On Sat, Aug 14, 2010 at 10:06 AM, Jesse Palser wrote:

On 08/14/2010 09:26 AM, @marcoaurelio_at_mall wrote:

Hello,

I’m working on a game using the SDL library and Ubuntu Linux 1.2;
I’m having problems in the speed screen update. I wonder if it is
possible
utiizar SDL version 1.3 and how to achieve the same for Ubuntu Linux.

Regards,

Marco Aurelio Mallagoli


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hi,

SDL 1.3 is still in development and is not recommended for your game.
Also SDL 1.3 in not available to install on most Linux’s.
(user would have to download, compile, and manually install 1.3).

I would recommend you stay with SDL 1.2 for your Linux game.
If the speed of screen drawing is too slow for your game,
I would recommend you add OpenGL to SDL 1.2.

Also, what Ubuntu you using? the current version is 10.04…

Jesse
16BitSoft®
Video Game Design Studio
www.16BitSoft.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-------------- next part --------------
An HTML attachment was scrubbed…
URL:
http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20100814/1279b81e/attachment-0001.htm


Message: 7
Date: Sat, 14 Aug 2010 10:51:14 -0400
From: Jesse Palser
To: SDL Development List
Subject: [SDL] [1.2+OpenGL]-Play mpg Movie To Screen?
Message-ID: <4C66AD62.2020805 at aol.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

[1.2+OpenGL]-Play mpg Movie To Screen?

Hi,

My dev team and I are working feverishly
on our next open-source cross-platform project
called “TetriStory 2 100%”.

You can view an exciting dev screenshot here:
http://16bitsoft.com/images/beta/TS2-Dev-Alpha0001.png

The game engine that I developed
(code named: “GTR Twin Turbo”)
uses current SDL 1.2 branch with OpenGL.

I was wondering if there was an easy method
to play an mpg movie to the SDL’s screen?
(using SDL 1.2, SDL_image, SDL_mixer, SDL_ttf, & OpenGL)
The method must be cross-platform.

Let me know, thanks!

Jesse “JeZ+Lee”
16BitSoft®
Video Game Design Studio
www.16BitSoft.com



SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

End of SDL Digest, Vol 44, Issue 22