Sprite3d Functions
-
- Enthusiast
- Posts: 109
- Joined: Sun Jan 01, 2006 9:34 pm
- Location: Wales, UK
Sprite3d Functions
The Sprite3d functions are far too slow.
Sadly, functions for game production in general are either too slow or are missing. Features such as analogue joystick support and LoadAnimSprite for animation (several animation frames loaded as one sprite).
So while PureBASIC is superb for application writing, for games it's not so hot. A pity because it's a lovely language to use.
Sadly, functions for game production in general are either too slow or are missing. Features such as analogue joystick support and LoadAnimSprite for animation (several animation frames loaded as one sprite).
So while PureBASIC is superb for application writing, for games it's not so hot. A pity because it's a lovely language to use.
Project S: loading...
Intel Core2 Duo E7200 @ 2.53Ghz, 3Gb RAM Intel G45 Express
Intel Core2 Duo E7200 @ 2.53Ghz, 3Gb RAM Intel G45 Express
Sprite3d functions are fast, why do you say that? I'm working on games for a while, and I have no problem!
And for joystick, you have the joystickex userlib on http://www.purearea.net/pb/english/index.htm
And for joystick, you have the joystickex userlib on http://www.purearea.net/pb/english/index.htm
-
- Enthusiast
- Posts: 109
- Joined: Sun Jan 01, 2006 9:34 pm
- Location: Wales, UK
-
- Enthusiast
- Posts: 109
- Joined: Sun Jan 01, 2006 9:34 pm
- Location: Wales, UK
-
- Enthusiast
- Posts: 109
- Joined: Sun Jan 01, 2006 9:34 pm
- Location: Wales, UK
in my humble opinion - if you think it's slow it's more a programmer-side error than a purebasic limitation.
when i saw what can be done by polux and his team (for example Lethal Judgment III from BGames : http://www.bgames.org/) it seems that purebasic has no speed problem when correctly coded.
but well, i don't know, maybe you're right.
we need a code sample (one for pb and another one for bb with the same visual result) to compare/benchmark.
then, from the pb sample code, polux or others guys can explain how to make the result faster with purebasic.

when i saw what can be done by polux and his team (for example Lethal Judgment III from BGames : http://www.bgames.org/) it seems that purebasic has no speed problem when correctly coded.
but well, i don't know, maybe you're right.
we need a code sample (one for pb and another one for bb with the same visual result) to compare/benchmark.
then, from the pb sample code, polux or others guys can explain how to make the result faster with purebasic.

No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
-
- Enthusiast
- Posts: 109
- Joined: Sun Jan 01, 2006 9:34 pm
- Location: Wales, UK
Lethal Judgement III uses very little Sprite3d function calls - all my sprites are alpha blended 3d sprites running at 1280 X 1024 32bit colour.
It's a chess game so I can get such high FPS - 347 FPS for PureBASIC is quite high, but obviously there is room for improvement.
It's a chess game so I can get such high FPS - 347 FPS for PureBASIC is quite high, but obviously there is room for improvement.
Project S: loading...
Intel Core2 Duo E7200 @ 2.53Ghz, 3Gb RAM Intel G45 Express
Intel Core2 Duo E7200 @ 2.53Ghz, 3Gb RAM Intel G45 Express
-
- Addict
- Posts: 1648
- Joined: Mon Sep 20, 2004 3:52 pm
- Contact:
-
- Enthusiast
- Posts: 109
- Joined: Sun Jan 01, 2006 9:34 pm
- Location: Wales, UK
There's no code to tweak - just a static chessboard and pieces being drawn using sprite3d commands.
PureBASIC has threads and can produce DLLs - BlitzMax can't. It is also better for writing application software than BlitzMax - but the simple fact is it's not quite as good for game related programs at this time (no language is perfect).
PureBASIC has threads and can produce DLLs - BlitzMax can't. It is also better for writing application software than BlitzMax - but the simple fact is it's not quite as good for game related programs at this time (no language is perfect).
Project S: loading...
Intel Core2 Duo E7200 @ 2.53Ghz, 3Gb RAM Intel G45 Express
Intel Core2 Duo E7200 @ 2.53Ghz, 3Gb RAM Intel G45 Express
In Windows version of PureBasic it's possible to call Direct3D's triangle drawing functions directly in conjunction with the standard OpenScreen(), InitSprite3D(), CreateSprite3D() functions.Steve Elliott wrote:There's no code to tweak
This can give a quite a significant performance boost especially if you have, say, a bunch of sprites on a single bitmap (eg. 16 different 64x64 sprites on a 256x256 texture).
- Joakim Christiansen
- Addict
- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
do you use only one start/stop3D() in your drawing loop ?Steve Elliott wrote:There's no code to tweak - just a static chessboard and pieces being drawn using sprite3d commands.
PureBASIC has threads and can produce DLLs - BlitzMax can't. It is also better for writing application software than BlitzMax - but the simple fact is it's not quite as good for game related programs at this time (no language is perfect).