spartrekus
Posts: 13
Joined: Sun Jun 11, 2017 12:36 pm

Command&Conqueer Clone using SDL engine for RPI?

Wed Sep 13, 2017 6:49 pm

Hello,

Command & Conqueer 1, the original with GDI and NOD, is a famous game made from Westwood.
I don't mean RedAlert, just the very very first original one! The first of the first.
Amazing music too, isn't it? This game was a amazing hit in Russia, Spain, Germany, France,... at that time.
More accurately: 1995, here url: https://en.wikipedia.org/wiki/Command_% ... ideo_game)

M. Brett Sperry deserves all respect from the gaming programming community, for his marvellous ideas, programming talents, strategic worlds, innovative gaming work, and achievements. Dune II and C&C were widely appraised.

This game was, is, and will remain just pure beauty of programming.

At that time, low-level programming was really something meaningful. Today many programming standards have become too easy, too comfortable for programmers, and it is far of being adapted for optimum performances. Gaming environments may be slower than ever, except for few graphic engines. The Raspberry PI 1 are 2 not really adapted for Linux operating systems, but the PI machines should be maybe destined more to BSD (OpenBSD, FreeBSD,...) which are more careful which having the best programming code for optimum performances.

Maybe one day we'll have FreeCNC, but it'll take many years more. I tried Netpanzer, and since it uses SDL 1.2 it is very optimized and fairly lightweight for the PI, without needing of cumbersome OpenGL (which is more or less working) power consuming OPENGL drivers. Using OpenGL rather than SDL for simple games is just making an overusage of the hardware of the PI. Furthermore, it will take more power and heat up the machine for longer time.

Whatever you may say, old strategy games were better than more modern ones. Here is the prove, on top of the list there are really old ones. Curious, no?
https://www.youtube.com/watch?v=EaAxKmBAEF0

Looking forward to hearing you. If you want to start a dev, use Netpanzer as a start or SDL 1.2 library.
LodePng has a resizing of pictures if no one is really interested to make resize (https://en.wikipedia.org/wiki/Image_scaling). Nothing hard really to get a fullscreen from a small image, even with 1.2 SDL. SDL 1.2 rocks, is light and performant on PI.

Well, if you look back, C&C did just fairly work on DOS and without any performance like the PI. C&C could work on Pentium.

The PI perfs are much much much more powerful than early machines Pentium that could fairly run C&C.

So, OpenGl versus SDL??
- SDL is a fair game to be used.

End of story, which SDL game would be like C&C working on Raspberry I, II or III ?

User avatar
mikerr
Posts: 2500
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: Command&Conqueer Clone using SDL engine for RPI?

Wed Sep 13, 2017 9:41 pm

They are already on the pi:

Dune legacy (OSS dune 2) :

viewtopic.php?t=48057

Also dune 2 playable in a browser ... https://epicport.com/en/dune2

Command&Conquer: red alert (Open red alert):

viewtopic.php?f=78&t=97047

The original c&C also works fine on dosbox (pi2 or 3)
Android app - Raspi Card Imager - download and image SD cards - No PC required !

spartrekus
Posts: 13
Joined: Sun Jun 11, 2017 12:36 pm

Re: Command&Conqueer Clone using SDL engine for RPI?

Fri Sep 15, 2017 4:30 pm

They all need OpenGL for a game of about 30 years old : (

ghans
Posts: 7384
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Command&Conqueer Clone using SDL engine for RPI?

Sat Sep 16, 2017 6:29 am

You do realize SDL will use software rendering without OpenGL ? That OpenGL implementations may utilize hardware rendering which makes it more efficient than software solutions by definition ? You cannot "overuse" the Pi , programs do the opposite when they don't use the GPU or lack the support for it.

You might want to look into rpix86 which emulates a PC + BIOS + MS-DOS. It probably uses software rendering (via SDL ?), but it's tailored to the Pi and the author is active on the forums.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

spartrekus
Posts: 13
Joined: Sun Jun 11, 2017 12:36 pm

Re: Command&Conqueer Clone using SDL engine for RPI?

Sun Sep 17, 2017 2:24 pm

ghans wrote:
Sat Sep 16, 2017 6:29 am
You do realize SDL will use software rendering without OpenGL ? That OpenGL implementations may utilize hardware rendering which makes it more efficient than software solutions by definition ? You cannot "overuse" the Pi , programs do the opposite when they don't use the GPU or lack the support for it.

You might want to look into rpix86 which emulates a PC + BIOS + MS-DOS. It probably uses software rendering (via SDL ?), but it's tailored to the Pi and the author is active on the forums.

ghans


For very old graphic rendering, software will never overuse the PI.

Look here: Lincity
just x11 and it fairly ok.


It is in all cases better than OpenGL since the graphic rendering of CnC are very simple for any machines, including PI 1.


Image

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 12 guests