Author Topic: Windows Api Game Section  (Read 5899 times)

0 Members and 2 Guests are viewing this topic.

JRS

  • Guest
Re: Windows Api Game Section
« Reply #15 on: October 08, 2013, 12:17:55 PM »
John
do you can show us how this nimrod game perform directly on windows
and say how much is really fast on windows not on redhat64?

Debunking the misinformed

  • The screenshot of the UFO Attack example is Nimrod  compiled for Windows.
  • I'm running this Windows 32 bit example under Wine (Vine to some)
  • I'm running Ubuntu 12.04 LTS 64 bit as my desktop. Red Hat has nothing to do with this.
  • This is a SDL wrapper example using the Nimrod nimgame 2D game engine extension.

Aurel

  • Guest
Re: Windows Api Game Section
« Reply #16 on: October 08, 2013, 12:48:51 PM »
ok.
so this is SDL based compiled win32 exe created by nimrod ...right?
do we can download this game?

JRS

  • Guest
Re: Windows Api Game Section
« Reply #17 on: October 08, 2013, 12:57:37 PM »
ok.
so this is SDL based compiled win32 exe created by nimrod ...right?
do we can download this game?

Here are the binaries and source.


.

Aurel

  • Guest
Re: Windows Api Game Section
« Reply #18 on: October 08, 2013, 09:34:37 PM »
Thanks John
Hmm this little game eat 80% of processor and use like you say SDL dll-s.

JRS

  • Guest
Re: Windows Api Game Section
« Reply #19 on: October 08, 2013, 11:06:25 PM »
I think this example is being used as a stress and API tester. I would be willing to give up some of 1800+ FPS back to the processor if I was to use this game toolkit myself. Look at the version level. (.01) That tells me this is the first working version in the author's eye's.

kryton9

  • Guest
Re: Windows Api Game Section
« Reply #20 on: October 09, 2013, 12:57:10 PM »
I am getting around 300 fps on my netbook and about 60% cpu usage. SDL is not static linked, but I have no idea if that would effect cpu usage... I thought it would only effect the executable size.

Thanks John, I can use this for comparison testing in the coming weeks, to see how executable file sizes vary from nimrod, c and freepascal.

JRS

  • Guest
Re: Windows Api Game Section
« Reply #21 on: October 09, 2013, 01:10:28 PM »
I don't think static linking would provide any performance advantage. Dynamic linking should be the preferred method as only one copy of the shared object is loaded into memory serving multiple processes with each having their own separate data segments. Try loading a Wine application for the first time and then compare loading additional Windows applications. (loads almost instantly) There is a performance gain if your program doesn't have to load (search for) shared objects if they are already in memory.

The only advantage I see of static linking is if the library your using is non-standard and would require installing dependencies.
« Last Edit: October 09, 2013, 03:14:59 PM by John »

kryton9

  • Guest
Re: Windows Api Game Section
« Reply #22 on: October 09, 2013, 01:46:57 PM »
I can't find the other sdl development libraries anymore for Windows. The site has changed dramatically.
Strange. Perhaps they want everyone to migrate to 2.0 version? Will keep looking later tonight.


JRS

  • Guest
Re: Windows Api Game Section
« Reply #23 on: October 09, 2013, 05:07:08 PM »
Code: [Select]
[quote]Perhaps they want everyone to migrate to 2.0 version? Will keep looking later tonight.
I compiled the RTB (Return To BASIC) interpreter on Android with SDL2 and SDL1 (what it was built with) without any issues with the version upgrade.


kryton9

  • Guest
Re: Windows Api Game Section
« Reply #24 on: October 09, 2013, 06:53:33 PM »
I found all the older libraries and sources tonight for sdl 1.2:
http://www.libsdl.org/projects/

For each SDL extension, when you click on it-- it will take you to the 2.0 version,
but if you look at the top middle of the page, you will see a link for the 1.2 version.
« Last Edit: October 09, 2013, 11:51:30 PM by kryton9 »

kryton9

  • Guest
Re: Windows Api Game Section
« Reply #25 on: October 09, 2013, 07:21:45 PM »
I found this demo from the sdl site.
Amazing all the cool things they do with such small code.
Just un7zip and double-click  RunMe.cmd
I wrote the batch script to make it easy to run the demo.
It will play through 2 demos and close when all finished.

Nice inspiration to keep plugging away at all we do!

.

JRS

  • Guest
Re: Windows Api Game Section
« Reply #26 on: October 09, 2013, 08:52:05 PM »
Nice. (running from a Wine console)


kryton9

  • Guest
Re: Windows Api Game Section
« Reply #27 on: October 10, 2013, 12:38:35 AM »
Thanks for telling me about wineconsole. I didn't know about it. So I tried it out.

The music sounded different than on windows. It could have just seemed like that
because, I had the volume level down very low-- as it is very late here.


.