English
Opportunities and suggestions

Set("usehdc2",0)

 
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.
CompileMarkSeparation
cls 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
CompileMarkSeparation
CLS 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.
 
10/23/06  
 



Hm Perhaps one for Roland something motivierenderes example:
CompileMarkSeparation
CLS 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

726 kB
Hochgeladen:10/23/06
Downloadcounter69
Download
 
10/23/06  
 




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?
 
10/23/06  
 



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>
 
10/23/06  
 




Frank
Abbing
Ne, comes you sure only so to.
 
10/23/06  
 



understand Frank - then liegts well on me.

time look what Roland about means...
 
10/23/06  
 




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.
 
10/23/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.705 Views

Untitledvor 0 min.
H.Brill10/09/20
RudiB.03/30/20
Jörg Sellmeyer11/10/11

Themeninformationen

this Topic has 3 subscriber:

iF (5x)
Frank Abbing (2x)
RGH (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie