| |
|
|
| Hello Roland.
Since I on the 2006it competition with a game as Einreichung participate would like, what about me me accordingly so employed with XProfan one game produce, I had there so a flapsige idea.
the game becomes one 2D-game his, no OpenGL and (sorry Frank) too no ProSpeed.Dll. only XProfaneigene command - means CopyBmps.
for the drop the someone means such one game produce would like stay IMHO too only - ifs grafisch go should with Sprites etc - The mCopys.
I faith You make per Mcopy at least but 2 BitBlits ?!
would be it Perhaps a Geschwindigkeitszuwachs give if one - in this particular drop the one in a game writes - if to the DoppelKopieren turn off could?
Set(usehdc2,0) ?
here time one McopyBmp FPS-Test, I access 420 Fps on nem 2,2it AMD with Ner PCI-OnboardGrKarte. CompileMarkSeparationcls 0
var xx&:=width(hwnd)
var yy&:=height(hwnd)-1
var fps&:=0
var fpst&:=&gettickcount+1000
while 1
setpixel rnd(xx&),0,if(rnd(2),rgb(0,rnd(255),0),0)
copybmp 0,0 - xx&,yy& > 0,1;0
fps&+
if &gettickcount>fpst&
fpst&:=fpst&+1000
settext %hwnd,"FPS: "+str$(fps&)
fps&:=0
endif
wend
end
not-XPSEer CompileMarkSeparationCLS 0
VAR XX&=WIDTH(%HWND)
VAR YY&=HEIGHT(%HWND)-1
VAR FPS&=0
VAR FPST&=&GETTICKCOUNT+1000
WHILE 1
SETPIXEL RND(XX&),0,IF(RND(2),RGB(0,RND(255),0),0)
COPYBMP 0,0 - XX&,YY& > 0,1;0
INC FPS&
IF &GETTICKCOUNT>FPST&
FPST&=FPST&+1000
SETTEXT %HWND,"FPS: "+STR$(FPS&)
FPS&=0
ENDIF
ENDWHILE
END
It's all right naturally not circa this example - in the game Gibts hundreds small asterisk explosions Murmeln and a wirkliches FPS-trouble have I on my computer neither - but More Speed would it naturally on each computer liquid make. (Flüssiger because is Echtzeitgeschrieben)
I mean so as small Gimmik for Game Programming under XProfan. |
|
|
| |
|
|
|
| Hm Perhaps one for Roland something motivierenderes example: CompileMarkSeparationCLS 0
VAR XX&=WIDTH(%HWND)
VAR YY&=HEIGHT(%HWND)-1
VAR FPS&=0
VAR FPST&=&GETTICKCOUNT+1000
MCLS XX&,YY&+200,0
STARTPAINT -1
USEFONT "Arial",150,0,1,0,0
TEXTCOLOR $00FF0000,-1
ENDPAINT
WHILE 1
STARTPAINT -1
SETPIXEL RND(XX&),0,IF(RND(2),RGB(0,RND(255),0),0)
COPYBMP 0,0 - XX&,YY& > 0,1;0
COPYBMP 60,110 - 500,200 > 0,YY&+1;0
DRAWTEXT 60,110,"XProfan"
ENDPAINT
MCOPYBMP 0,0 - XX&,YY& > 0,0;0
STARTPAINT -1
COPYBMP 0,YY&+1 - 500,200 > 60,110;0
ENDPAINT
INC FPS&
IF &GETTICKCOUNT>FPST&
FPST&=FPST&+1000
SETTEXT %HWND,"FPS: "+STR$(FPS&)
FPS&=0
ENDIF
ENDWHILE
END
|
|
|
| |
|
|
|
Frank Abbing | [quote:31e21c143b]...too no ProSpeed.Dll. only XProfaneigene command - means CopyBmps.[/quote:31e21c143b] in lieu of of CopyBmp could you The API BitBlt() use. accordingly would only each a copy prepares. where means is your trouble? |
|
|
| |
|
|
|
| and with DrawText could I... and with CopySizeBmp could I... with Line could I and with ellipsis could I... clear could I on any of the already of Roland create functions dispense - I could too in ASM write, or in C, or still JS? where is eigendlich my trouble? I mean my trouble isn't understood been? is the my trouble? Rechtfertig this a new Thread? ought to I ne Selbsthilfegruppe for nichtverstandene XProfan grinder want?
<offtopic>Kommt me the only so to or are today a couple Programmer something aggresiv from me unidentified grinder? Liegts on me? Have I mean Kelloggs(TM) not aufgefuttert? </offtopic> |
|
|
| |
|
|
|
Frank Abbing | Ne, comes you sure only so to. |
|
|
| |
|
|
|
| understand Frank - then liegts well on me.
time look what Roland about means... |
|
|
| |
|
|
|
RGH | Hi, in principle is such a thing possible. I should then even on all to put, on them I The two hDC and hDC2 bediene a IF-request install and if hDC2 = 0 is only hDC using. sure a thing The To consider would, ... but sure not for XProfan 10. there are still a crowd to put To respect ... Also should then the Programmer with eachone movement and Veränderung the Hauptensters hereon react and the screen complete new set up. I keep it time in the back of the head ...
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 10/23/06 ▲ |
|
|
|
|
| Beautiful. |
|
|
| |
|
|