Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

SFML 2.0 vs SDL 1.3

Name: Anonymous 2011-11-21 0:01

Both are undergoing development
Both support hardware accelerated 2D out of the box
Both are licensed under the zlib license -- that's right, you are now free to statically link SDL to your programs

SFML is mostly supported by one developer, a much smaller team than the one behind SDL
SFML is only aimed at Windows/Linux/OSX for the moment, while SDL supports a much wider range of platforms
SFML 2.0 is pretty unstable at the moment, with the lead developer stating that he's prepared to completely break parts of the API prior to the 2.0 release
SDL 1.3 is probably pretty unstable as well
SFML has a much more friendly API than SDL, in my experience, although this is limited to usage of 1.2

Given my limited knowledge of SDL 1.3, I'm not sure which is the better library to side with. I originally jumped ship from SDL to SFML because of its friendlier API and hardware accelerated 2D graphics, but if SDL 1.3 is going to feature similar hardware acceleration along with a brisker, more reliable pace of development, my inclined to side with it. Can /prog/ convince me to pick a camp?

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-11-21 8:45

SDL 324kb dll
SFML 24000kb in 5 DLLs
The latter could be as fast as sepples allows it but adding twenty mb of bloat is not excusable for library which is a minimal layer over OpenGL

Name: Anonymous 2011-11-21 8:50

twenty mb of bloat
twenty mb
Do they still use 56kbod modems in Russia?

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-11-21 9:12

Speed of transfer isn't the problem, it just indicates there is alot of code for very little function.
Consider that for 24mb would be enough to contain entire DirectX 8.1(11.8 MB as full install),OpenGL(2mb with GLUT, all bells and whistles),3-4 sound libraries and still not reach even 20 mb.

Name: Anonymous 2011-11-21 9:30

>>10
it just indicates there is alot of code for very little function.
So what? Maybe it's infinitely decompressed or something, anyway, why do you care about functionality density per megabyte? Why is this a metric that one should strive to optimize?

I feel like you maybe read too many books which brainwashed you with patriarchal preconceptions.

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-11-21 9:48

>>11
Its simply called bloat. I don't read books, i just see this library advertised as "fast and efficient".

Name: Anonymous 2011-11-21 10:22

>>11
http://www.theproduct.de/
If you're used to multimegabyte graphics programs, this will blow your fucking mind.

Name: Anonymous 2011-11-21 10:34

>>8
What kind of bloated SFML build do you have?

  294 400 sfml-audio-d.dll
   89 600 sfml-audio.dll
2 200 064 sfml-graphics-d.dll
1 207 296 sfml-graphics.dll
  270 848 sfml-network-d.dll
   81 408 sfml-network.dll
  153 088 sfml-system-d.dll
   34 816 sfml-system.dll
  199 168 sfml-window-d.dll
   44 544 sfml-window.dll
10 File(s) 4 575 232 bytes


   89 600 sfml-audio.dll
1 207 296 sfml-graphics.dll
   81 408 sfml-network.dll
   34 816 sfml-system.dll
   44 544 sfml-window.dll
5 File(s) 1.457.664 bytes


Not to mention that SDL.dll does not include networking and audio, last time I checked.

Even if you were to include libsndfile-1.dll (325 120 bytes) and openal32.dll (208 896 bytes) for some reason, you would still be very far away from 20mb.

Name: Anonymous 2011-11-21 10:56

>>8
GLFW > *

No bloat

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-11-21 11:03

Directory of C:\download\SFML-1.6-c-dev-windows-mingw\SFML-1.6\CSFML\lib

2011-11-21  18:46    <DIR>          .
2011-11-21  18:46    <DIR>          ..
2010-03-24  10:41         4,767,624 csfml-audio-d.dll
2010-03-24  10:42         3,959,646 csfml-audio.dll
2010-03-24  10:41         8,737,704 csfml-graphics-d.dll
2010-03-24  10:42         5,739,214 csfml-graphics.dll
2010-03-24  10:41         4,905,839 csfml-network-d.dll
2010-03-24  10:42         4,143,476 csfml-network.dll
2010-03-24  10:41         3,838,712 csfml-system-d.dll
2010-03-24  10:41         3,794,087 csfml-system.dll
2010-03-24  10:41         4,292,178 csfml-window-d.dll
2010-03-24  10:41         3,878,838 csfml-window.dll
2010-03-24  10:41           525,256 libcsfml-audio-d.a
2010-03-24  10:42            56,982 libcsfml-audio-s-d.a
2010-03-24  10:43            35,234 libcsfml-audio-s.a
2010-03-24  10:42           267,124 libcsfml-audio.a
2010-03-24  10:41         3,011,956 libcsfml-graphics-d.a
2010-03-24  10:42           230,206 libcsfml-graphics-s-d.a
2010-03-24  10:43            70,654 libcsfml-graphics-s.a
2010-03-24  10:42         1,871,780 libcsfml-graphics.a
2010-03-24  10:41           817,414 libcsfml-network-d.a
2010-03-24  10:42           337,346 libcsfml-network-s-d.a
2010-03-24  10:43            77,444 libcsfml-network-s.a
2010-03-24  10:42           241,674 libcsfml-network.a
2010-03-24  10:41            39,232 libcsfml-system-d.a
2010-03-24  10:42             9,058 libcsfml-system-s-d.a
2010-03-24  10:43             5,702 libcsfml-system-s.a
2010-03-24  10:41            35,294 libcsfml-system.a
2010-03-24  10:41           368,122 libcsfml-window-d.a
2010-03-24  10:42            15,502 libcsfml-window-s-d.a
2010-03-24  10:43            10,304 libcsfml-window-s.a
2010-03-24  10:41           136,370 libcsfml-window.a
              31 File(s)     56,219,972 bytes
               2 Dir(s)  297,620,914,176 bytes free

Name: Anonymous 2011-11-21 11:05

>1.6
Get with the times frozenfaggot

Name: Anonymous 2011-11-21 11:06

>>16
.a
Those are supposed to be statically linked into your program executable file and pruned by the linker. The actual size is much smaller.

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-11-21 11:11

>>18
The post wasn't about them, its about the DLLs. The whole library is at 24mb of DLLs.

Name: Anonymous 2011-11-21 11:27

>>12
Its simply called bloat.
And why you say that as if it were something bad?
I don't read books,
Then you got yourself brainwashed by something else.
i just see this library advertised as "fast and efficient".
What's slow and inefficient about it?

>>13
well, that's kind of my point. You see people trying to create something under some artificial constraints. You can call it "art" or "intellectual masturbation", or whatever, that's OK, no problemo.

But if you forget about the fact that the constraints are artificial, then you get brainwashed by the semi-imaginary peer pressure which tells you that no "bloat" is good, because it's good, because look at how respected fr are, you should respect what respected people do and try to be respected as well, so stay away from the bloat! First rule of the no-bloat club: don't question why bloat is bad!

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-11-21 11:40

>>20
Do you work at Microsoft by chance?

Name: Anonymous 2011-11-21 11:40

>>16
Don't blame C++, blame the SFML developers for not knowing how to strip debug symbols from their binaries.

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-11-21 11:49

>>22
>not knowing how to strip debug symbols
Debug versions and non-debug versions differ by couple of megabytes.

Name: Anonymous 2011-11-21 11:49

>>21
When logic fails a brainwashed individual, he resorts to an ad hominem, preferably one which implies that the interrogator belongs to them, the enemy which seeks to destroy the group to which the individual belongs.

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-11-21 11:55

>>24
I don't have to prove that bloat is bad, it obvious that functionality which comes at lesser cost is better than one that comes at higher cost.
You can fiddle with gigabyte sapping, memory leaking VMs and gigantic libraries all day, that typical for AAA-class Enterprise Software Developers, its just not as efficient or elegant in terms of design as >>13

Name: Anonymous 2011-11-21 12:04

>>16
You're using CSFML not SFML, and it's also outdated or something, because a quick check by downloading the up to date libraries from http://sfml-dev.org/download.php (http://downloads.sourceforge.net/sfml/SFML-1.6-c-sdk-windows-vc2008.zip) gives a total of 1.4mb total size for the 5 DLLs.

>>22
Refer to >>14 for the C++ libraries; CSFML is not C++ so using that supposed ``bloat'' as reason to pick on C++ makes no sense.

Name: >>26 2011-11-21 12:08

>>16
My bad; I realize now that you have the supplied pre-compiled DLLs that were built using MingW. Of course it's going to be bloated shit; don't blame SFML, blame the retardation that is MingW.

Name: Anonymous 2011-11-21 12:09

I don't have to prove that bloat is bad, it obvious
Heh.

that functionality which comes at lesser cost is better than one that comes at higher cost.
Define cost.

You can fiddle with gigabyte sapping, memory leaking VMs and gigantic libraries all day, that typical for AAA-class Enterprise Software Developers
Here we can see how brainwashed individual tries to further assert his ad hominem and the notion that the questioner belongs to a hostile class, which is why his questions are dangerous to even try to answer.

its just not as efficient
You must say that it is not as efficient three times, only then it will become true. Two times are not enough.

or elegant in terms of design as
Oh, yes, sure, it's not "elegant", it's not "beautiful", it's not a piece of art -- not something created under pointless constraints.

By the way, while we are at it, do you realize that we are discussing the size of the binary, not the source code? Not that it is terribly important, since your rinsed and dried brain blows fuses when it detects questioning of your silly beliefs either way.

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-11-21 12:18

>>28
>not something created under pointless constraints
These are qualities of the software, have less size,less more use, more speed are not "pointless"
>CSFML is not C++ so using that supposed ``bloat'' as reason to pick on C++ makes no sense.
Thats exactly why its larger its filled with useless Sepples functions, which mingw compiles in.

Name: Anonymous 2011-11-21 12:25

>>29
These are qualities of the software, have less size,less more use, more speed are not "pointless"
I didn't think your brain would literally short-circuit, ha ha ha.

You poor creature, have you ever been as far as decided even do more like?

Name: Anonymous 2011-11-21 12:28

>>29
No, it's larger because MingW is a terrible compiler. Clearly you have never actually even bothered to build any windows executables with it or you would be familiar with that. What goes in the VC++ redistributables is pretty much statically linked into every MingW executable in existence and that is the reason it generates massive bloat. It being C++ or C has literally nothing to do with it.

Of course, IHBT since you clearly never even bothered looking at CSFML's source if you say things like its filled with useless Sepples functions.

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-11-21 12:29

>>30
I don't think so, i meant to type 'less memory use', but missed a few keys.
Is memory use, size of program, speed of execution one of "pointless constraints"?

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-11-21 12:33

>>31
>never even bothered looking at CSFML's source
I checked the DLLs in notepad, all are filled with thousands of Sepples functions at the end.

Name: Anonymous 2011-11-21 12:43

>>32
Is memory use, size of program, speed of execution one of "pointless constraints"?
Depends on the actual values. For instance, the difference between 20mb and 2mb used by an in-memory image of library on an 4Gb machine, for a 3d graphics application, is irrelevant, the 2mb memory consumption constraint is artificial, and spending any effort whatsoever to fit the library in the constrained space is pointless.

Prove me wrong.

Name: Anonymous 2011-11-21 12:59

>>34
You're a faggot, therefore you're wrong.

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-11-21 12:59

>Depends on the actual values
I see you have some sense, now what would make a library less efficient? Having more size is just one of symptoms, bloated OOP abstraction
 layers and generally unoptimized, low-quality code.
>spending any effort
The effect is multiplied by thousands of programs where programmer did not spend any effort. The next enterprise code monkey which is assigned to a program just wants the monthly banana for least effort and will be as lazy as the last.

Name: Anonymous 2011-11-21 13:15

I see you have some sense, now what would make a library less efficient? Having more size is just one of symptoms, bloated OOP abstraction layers and generally unoptimized, low-quality code.
You are speaking out of your anus.
In this particular case it was demonstrated to you that the "bloat" of the binary was not caused by any of these things.

Brainwashed people tend to ignore facts in favour of "ideologically correct" reasoning.

Name: Anonymous 2011-11-21 13:36

>>16
1, those are the C SFML bindings, not the default C++ ones.
2, you listed every possible version of the library there. Both the release and debug versions of both the static and dynamically linked libraries.

Can we ignore the impostor FrozenVoid now and get back to discussing the actual merits of SDL 1.3 and SFML 2.0?

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-11-21 13:41

>those are the C SFML bindings, not the default C++ ones.
here are C++ bindings, i don't see how this improves the size
 Directory of C:\download\SFML-1.6-dev-windows-mingw\SFML-1.6\lib

2011-11-21  21:24    <DIR>          .
2011-11-21  21:24    <DIR>          ..
2010-03-23  20:18            89,048 libsfml-audio-d.a
2010-03-23  20:27         1,271,442 libsfml-audio-s-d.a
2010-03-23  20:27           267,396 libsfml-audio-s.a
2010-03-23  20:21            88,120 libsfml-audio.a
2010-03-23  20:17           168,674 libsfml-graphics-d.a
2010-03-23  20:27         5,450,664 libsfml-graphics-s-d.a
2010-03-23  20:27         1,940,378 libsfml-graphics-s.a
2010-03-23  20:21           161,914 libsfml-graphics.a
2010-03-23  20:28             2,652 libsfml-main-d.a
2010-03-23  20:28               852 libsfml-main.a
2010-03-23  20:17           115,254 libsfml-network-d.a
2010-03-23  20:27         1,077,814 libsfml-network-s-d.a
2010-03-23  20:27           214,722 libsfml-network-s.a
2010-03-23  20:20           114,250 libsfml-network.a
2010-03-23  20:17            59,984 libsfml-system-d.a
2010-03-23  20:13           417,078 libsfml-system-s-d.a
2010-03-23  20:14            38,504 libsfml-system-s.a
2010-03-23  20:19            44,688 libsfml-system.a
2010-03-23  20:17            48,394 libsfml-window-d.a
2010-03-23  20:27         1,281,928 libsfml-window-s-d.a
2010-03-23  20:27           754,116 libsfml-window-s.a
2010-03-23  20:19            46,906 libsfml-window.a
2010-03-23  20:18         4,669,902 sfml-audio-d.dll
2010-03-23  20:21         3,930,797 sfml-audio.dll
2010-03-23  20:17         8,345,358 sfml-graphics-d.dll
2010-03-23  20:21         5,614,545 sfml-graphics.dll
2010-03-23  20:17         4,691,779 sfml-network-d.dll
2010-03-23  20:20         4,091,668 sfml-network.dll
2010-03-23  20:17         4,166,393 sfml-system-d.dll
2010-03-23  20:19         3,886,010 sfml-system.dll
2010-03-23  20:17         4,240,956 sfml-window-d.dll
2010-03-23  20:19         3,866,802 sfml-window.dll
              32 File(s)     61,158,988 bytes
               2 Dir(s)  297,482,485,760 bytes free

Name: F r o z e n C h e f 2011-11-21 13:46

>thuse-a ere-a zee C SFML beendings, nut zee deffoolt C++ oones. Bork Bork Bork!
here-a ere-a C++ beendings, i dun't see-a hoo thees imprufes zee seeze-a
 Durectury ooff C:\doonlued\SFML-1.6-def-veendoos-meengv\SFML-1.6\leeb

2011-11-21  21:24              . Bork Bork Bork!
2011-11-21  21:24              .. Bork Bork Bork!
2010-03-23  20:18            89,048 leebsffml-oodeeu-d.a
2010-03-23  20:27         1,271,442 leebsffml-oodeeu-s-d.a
2010-03-23  20:27           267,396 leebsffml-oodeeu-s.a
2010-03-23  20:21            88,120 leebsffml-oodeeu.a
2010-03-23  20:17           168,674 leebsffml-grepheecs-d.a
2010-03-23  20:27         5,450,664 leebsffml-grepheecs-s-d.a
2010-03-23  20:27         1,940,378 leebsffml-grepheecs-s.a
2010-03-23  20:21           161,914 leebsffml-grepheecs.a
2010-03-23  20:28             2,652 leebsffml-meeen-d.a
2010-03-23  20:28               852 leebsffml-meeen.a
2010-03-23  20:17           115,254 leebsffml-netvurk-d.a
2010-03-23  20:27         1,077,814 leebsffml-netvurk-s-d.a
2010-03-23  20:27           214,722 leebsffml-netvurk-s.a
2010-03-23  20:20           114,250 leebsffml-netvurk.a
2010-03-23  20:17            59,984 leebsffml-system-d.a
2010-03-23  20:13           417,078 leebsffml-system-s-d.a
2010-03-23  20:14            38,504 leebsffml-system-s.a
2010-03-23  20:19            44,688 leebsffml-system.a
2010-03-23  20:17            48,394 leebsffml-veendoo-d.a
2010-03-23  20:27         1,281,928 leebsffml-veendoo-s-d.a
2010-03-23  20:27           754,116 leebsffml-veendoo-s.a
2010-03-23  20:19            46,906 leebsffml-veendoo.a
2010-03-23  20:18         4,669,902 sffml-oodeeu-d.dll
2010-03-23  20:21         3,930,797 sffml-oodeeu.dll
2010-03-23  20:17         8,345,358 sffml-grepheecs-d.dll
2010-03-23  20:21         5,614,545 sffml-grepheecs.dll
2010-03-23  20:17         4,691,779 sffml-netvurk-d.dll
2010-03-23  20:20         4,091,668 sffml-netvurk.dll
2010-03-23  20:17         4,166,393 sffml-system-d.dll
2010-03-23  20:19         3,886,010 sffml-system.dll
2010-03-23  20:17         4,240,956 sffml-veendoo-d.dll
2010-03-23  20:19         3,866,802 sffml-veendoo.dll
              32 Feele-a(s)     61,158,988 bytes
               2 Dur(s)  297,482,485,760 bytes free

Name: Anonymous 2011-11-21 14:06

11/21/2011  01:53 PM         1,117,130 sfml-audio-2.dll
11/21/2011  01:53 PM         2,605,213 sfml-graphics-2.dll
11/21/2011  01:53 PM         1,175,542 sfml-network-2.dll
11/21/2011  01:53 PM           880,888 sfml-system-2.dll
11/21/2011  01:53 PM           916,777 sfml-window-2.dll
               8 File(s)      9,427,582 bytes
              
11/20/2011  05:26 PM           236,924 libsfml-audio-s.a
11/21/2011  01:53 PM            92,720 libsfml-audio.a
11/20/2011  05:26 PM         2,075,664 libsfml-graphics-s.a
11/21/2011  01:53 PM           226,496 libsfml-graphics.a
11/21/2011  01:53 PM               878 libsfml-main.a
11/20/2011  05:26 PM           295,286 libsfml-network-s.a
11/21/2011  01:53 PM           123,840 libsfml-network.a
11/20/2011  05:26 PM            38,920 libsfml-system-s.a
11/21/2011  01:53 PM            54,712 libsfml-system.a
11/20/2011  05:26 PM           772,902 libsfml-window-s.a
11/21/2011  01:53 PM            55,224 libsfml-window.a
              12 File(s)      3,973,566 bytes

Worst case: 9 MiB of DLLs, plus some linking overhead should add around 10 MiB of overhead to your program.

Typical case: You use the static libraries and only the parts of SFML that you actually used are linked in. The overhead is a fraction of that of using the dynamic libraries.

In either case, SFML doesn't add enough overhead to your executable to impact distribution. Even the 9 MiB of DLLs (plus the libsndfile and openal DLLs) easily compress down to a 1.5 MiB 7z archive, or a 2.5 MiB zip archive.

I have beet rolled.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List