Leistung beim progsteigern
Übersicht

![]() |
ozzi789Betreff: Leistung beim progsteigern |
![]() Antworten mit Zitat ![]() |
---|---|---|
Salü
Ich hab ne "anwendung" gemacht ( 3d habi vorerst satt ![]() Es funkt ganz toll doch braucht sogar bei nem Q 6600 Cpu 20 - 24 % Cpu auslastung ... kan ja ned normal sein ??? goto überall ich weiss... der code is hier ( denke irgendne schleife is falsch ) Code: [AUSKLAPPEN] Graphics 600,300,16,2 SetBuffer BackBuffer() AppTitle "Multitool","Are you sure" While Not KeyHit (1) If KeyHit (200) c = c+1 End If If c >3 Then c = 0 If b=0 Then Color 255,255,255 If c=1 Then Color 255,0,0 If c=2 Then Color 0,255,0 If c=3 Then Color 0,0,255 If KeyHit (208) b = b+1 End If If b>3 Then b = 0 If b=0 Then ClsColor 0,0,0 If b=1 Then ClsColor 255,0,0 If b=2 Then ClsColor 0,255,0 If b=3 Then ClsColor 0,0,255 If KeyDown (15) FlushKeys Cls Locate 0,40 name$=Input$("Enter Notice : ") Locate 30,0 Print name End If Cls Locate 0,0 Print CurrentTime$() Print CurrentDate$() Print "" Print "To Do: "+name Locate 0,270 Print "Use Up-Arrow to change Colors" Print "Press Tab to enter Notice, Press Backspace to open the Calculator" If KeyHit (14) calc Flip Wend End Function calc () Cls Locate 0,0 FlushKeys .aba Wahl$ = Input ("Please Enter +,-,*,/ => ") Print " Type End to get back " Select Wahl Case "+" Goto plus Case "-" Goto minus Case "*" Goto times Case "/" Goto divide Case "End" Return Case "end" Return Default Print "" Print " Invalide Input, please Type +,-,*,/ " Print "" Goto aba End Select .plus Print "" Print "" Print " Please type first number" Print " Please type second number" Print "--------------------------" z1#=Input ("First Number ") If z1= End Then End Print " +" z2#=Input ("Second Nubmer ") If z2= End Then End Print"" ergebniss1# = z1+z2 Print ergebniss1 Print"" Goto aba .minus Print "" Print "" Print " Please type first number" Print " Please type second number" Print "--------------------------" z1#=Input ("First Number ") If z1= End Then End Print " -" z2#=Input ("Second Number ") If z2= End Then End Print"" ergebniss1# = z1-z2 Print ergebniss1 Print"" Goto aba .times Print "" Print "" Print " Please type first number" Print " Please type second number" Print "--------------------------" z1#=Input ("First Number ") If z1= End Then End Print " *" z2#=Input ("Second Number ") If z2= End Then End Print"" ergebniss1# = z1*z2 Print ergebniss1 Print"" Goto aba .divide Print "" Print "" Print " Please type first number" Print " Please type second number" Print "--------------------------" z1#=Input ("First Number ") If z1= End Then End Print " /" z2#=Input ("Second Number ") If z2= End Then End Print"" ergebniss1# = z1/z2 Print ergebniss1 Print"" Goto aba End Function Thx viel mal ![]() |
||
0x2B || ! 0x2B
C# | C++13 | Java 7 | PHP 5 |
![]() |
RallimenSieger des 30-EUR-Wettbewerbs |
![]() Antworten mit Zitat ![]() |
---|---|---|
1. Backbuffer und Flip geht nicht mit print
2. Die Auslastung deines PC kannst du mit Delay 20 (anstelle von flip )oder mehr runterregeln |
||
[BB2D | BB3D | BB+]
|
![]() |
BladeRunnerModerator |
![]() Antworten mit Zitat ![]() |
---|---|---|
https://www.blitzforum.de/foru...hp?t=25242
Das sollte das wesentliche klären, auch warum das delay eher ungünstig ist. |
||
Zu Diensten, Bürger.
Intel T2300, 2.5GB DDR 533, Mobility Radeon X1600 Win XP Home SP3 Intel T8400, 4GB DDR3, Nvidia GF9700M GTS Win 7/64 B3D BMax MaxGUI Stolzer Gewinner des BAC#48, #52 & #92 |
![]() |
ozzi789 |
![]() Antworten mit Zitat ![]() |
---|---|---|
Danke jetz brauchts nur noch 1-2 % ![]() (manchmal hats aber noch geflimmert bei delay 20 jetz ises delay 10 ) |
||
0x2B || ! 0x2B
C# | C++13 | Java 7 | PHP 5 |
![]() |
RallimenSieger des 30-EUR-Wettbewerbs |
![]() Antworten mit Zitat ![]() |
---|---|---|
Das flimmern kommt von Print und Input, da es direkt in den Frontbuffer geschrieben wird.
besser ist ein Code mit Text und einer speziellen Inputroutine bei der auch der Backbuffer genutzt werden kann |
||
[BB2D | BB3D | BB+]
|
Übersicht


Powered by phpBB © 2001 - 2006, phpBB Group