Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ztx_ryan

Pages: [1]
1
Thank you very much for replying Hiura :)

You could very well be right that this error is unrelated to the app not running anymore. What happens is that it draws the first frame, and then crashes with a SIGTERM message here:

0x00007fff90b27bca  <+0010>  jae    0x7fff90b27bd1 <__psynch_cvwait+17>

and also next to the poll event in my game loop -I dont know if that is telling anything.

And then it prints those errors to the console I posted earlier. Sorry if I was pointing in the wrong direction in the first post, I just thought those errors where the ones to look for.

I have tried to make a new project in xcode and copied all the files over, and the new app ran nicely the first couple of builds, but now does the same thing.

I did not compile SFML myself, I downloaded the precompiled 2.0 version maybe half a year ago. Is there anywhere to look for a more specifik version number of the SFML I am using? I'm on a 2.7 GHz Intel Core i7 MacBook running 10.7.5.

2
After having worked on project for a while with no major problems, it now suddenly crashes when build, and prints out this list of errors in the console:

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jaricom.o)" - no debug information available for "jaricom.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcapimin.o)" - no debug information available for "jcapimin.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcapistd.o)" - no debug information available for "jcapistd.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcarith.o)" - no debug information available for "jcarith.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jccoefct.o)" - no debug information available for "jccoefct.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jccolor.o)" - no debug information available for "jccolor.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcdctmgr.o)" - no debug information available for "jcdctmgr.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jchuff.o)" - no debug information available for "jchuff.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcinit.o)" - no debug information available for "jcinit.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcmainct.o)" - no debug information available for "jcmainct.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcmarker.o)" - no debug information available for "jcmarker.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcmaster.o)" - no debug information available for "jcmaster.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcomapi.o)" - no debug information available for "jcomapi.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcparam.o)" - no debug information available for "jcparam.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcprepct.o)" - no debug information available for "jcprepct.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jcsample.o)" - no debug information available for "jcsample.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jdatadst.o)" - no debug information available for "jdatadst.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jerror.o)" - no debug information available for "jerror.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jfdctflt.o)" - no debug information available for "jfdctflt.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jfdctfst.o)" - no debug information available for "jfdctfst.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jfdctint.o)" - no debug information available for "jfdctint.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jutils.o)" - no debug information available for "jutils.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jmemmgr.o)" - no debug information available for "jmemmgr.c".

warning: Could not find object file "/Users/marcoantognini/Prog/Cpp/Lib/SFML/sfml_git/extlibs/libs-osx/lib/libjpeg.a(jmemnobs.o)" - no debug information available for "jmemnobs.c".


I am pretty lost in my search for the cause of this error. I have not made any changes, that I have not tried to undo, but I cannot get my program to run. Does anyone know what could cause this to happen, or in what direction I should look for a solution?

Any help is much appreciated :)

3
Graphics / Re: Help with vsync and SFML on a MAC
« on: May 10, 2012, 10:32:23 am »
Ok thanks a lot, I will try out 2.0 today and see how things work out.

UPDATE: I don't know, if anyone is interested, but I have now installed 2.0 and found the solution. :)

Turned out, that the vsync was messing up, whenever I was not running the program in fullscreen (creating a window that was not 1280 x 800). After adding the "sf::Style::Fullscreen" line to the creation of the window, everything is now running smooth as silk!

I now get a beautiful set of values when measuring time between frames looking something like this:

0.016462
0.016695
0.017196
0.015964
0.016488
0.017315
0.016253
0.016649
0.016575
0.016671
0.016504
0.017225
0.016182
0.016568

4
Graphics / Re: Help with vsync and SFML on a MAC
« on: May 09, 2012, 10:14:02 pm »
Thank you very much for the reply Hiura!

I havn't tried SFML 2.0, because at the time, 1.6 seemed easier to get up and running, but I will definately give it a try now! How are your experinces with 2.0 and vsync on a Mac (I'm on a MacBook with Intel HD Graphics 3000 384 MB) if you dont mind me asking?

Nice to know that the vsyncs not supposed to return consistent values when I measure the time, I have been wondering about that for a long time! I have now tried to use the SetFramerateLimit(60) method, which gives me very consistent values when I measure the time:

0.017386
0.0177701
0.0177519
0.0176961
0.017755
0.0176439
0.017705
0.017792
0.0177081
0.0175941

But still very jerky movement, and alot of tearing...

So, are my only options now? :

1. To disable vsync and let the screen render at a high enough rate to make things look smooth, but with tearing?
2. Enable vsync or frameratelimit and live with the large amount of jerkiness?
3. Move on to SFML 2.0?

5
Graphics / Help with vsync and SFML on a MAC
« on: May 09, 2012, 03:53:53 pm »
Hi fellow SFML'ers.

I've just starting using SFML 1.6, and I have some trouble getting smooth animation when using vsync. When I print out the time passed since the last frame to the console, I get a list of VERY scattered values like this:

0.016885
0.016948
0.016119
0.0061512
0.0270939
0.0174539
0.0332918
0.0162151
0.017309
0.032944
0.016253
0.0176249
0.0328569
0.00567698
0.0282021
0.0331681
0.016572
0.0166841
0.0172169
0.0327649
0.016468
0.0166309
0.0182922
0.032073
0.016552
0.01722

And the animation looks extremely jerky. By looking at the numbers, it seems like it skips a frame pretty often (when the numbers are in the 0.03'ies, but whats the reason behind a value like 0.0061512..?) And shouldnt these numbers be VERY consistant around 0.01667 (60 FPS)?

In this example, all I do is draw a single moving square to the screen, so it is not the logic updates that are holding things back. When I disable vsync, things look alot smoother, and the values look something like this:

0.000458956
0.000432014
0.000494003
0.000482082
0.000458956
0.000513077
0.000463963
0.000466824
0.000482082
0.000499964
0.000500917
0.000490904
0.000501156

But there is lot of screen tearing, so I dont really like that solution either.

At the very top of my gameloop, I calculate the time passed since the last frame like this:

while (App.IsOpened())
{
      float FrameTime = UpdateClock.GetElapsedTime();  //UpdateClock created outside the gameloop
      UpdateClock.Reset();
...

and multiply this value into the velocity of my box, to make its logic updates independent of the specific computers' power:

       box->Update(FrameTime);
         
Then I just create a rectangle from the values stored in my box object, and draw it to the screen:
            
      sf::Shape rectangle = sf::Shape::Rectangle(box->GetX(), box->GetY(),
                                                  box->GetX() + 100, box->GetY() + 100, sf::Color::Green);
      
      App.Clear();
      
      App.Draw(rectangle);
      
      App.Display();
}

What am I doing wrong?

Has anyone here succeded in making a gameloop with smooth animation running on a Mac?

Sorry if this post seems a little confusing, I've never posted before, and just putting this down on paper turned out to be harder than i thought  :)

Pages: [1]