mijn .exe laad de codes heel sloom

Status
Niet open voor verdere reacties.

upgrader

Gebruiker
Lid geworden
21 nov 2012
Berichten
8
mijn .exe die ik had gemaakt om een soort van filmpje te maken bestaat uit heel veel cout's met daarachter een soort van tekst die dan samen een frame moeten voorstellen en daarna heb ik gewoon system("pause"); en system("cls"); en dan de volgende "frame" maar hij laad de volgende frame heel langzaam en dus gaat het filmpje heel sloom. Heeft iemand een idee hoe dit zou kunnen??
 
Een soort 'tekst'-filmpje?
Het kost gewoon tijd om zoveel tekst te laden, denk ik.
 
nee, want slome computers doen het wel snel en normaal. en hij doet ook zo bij kleinere "filmpjes"
 
die is redelijk lang en simpel maar ik geef wel een begin en hij gaat zo ook de heletijd hetzelfde door
[cpp]
cout << " . . " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O= " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=< " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<8 " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88 " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88> " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>= " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>=O " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>=O< " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>=O<E " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>=O<E " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>=O<E " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>=O<E " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>=O<E " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>=O<E " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>=O<E " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>=O<E " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>=O<E " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>=O<E " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>=O<E " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>=O<E " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>=O<E " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>=O<E " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>=O<E " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");

cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " O=<88>=O<E " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << "|< <<< << 1< # >1 > >> >>> >| " << endl;
system ("pause");
system ("cls");
[/cpp]
Mod-edit: Voor code kun je gebruik maken van diverse "tags" waaronder [cpp]{code}[/cpp]
 
Laatst bewerkt door een moderator:
Is dit goed?
sBaeg.gif


Ik denk dat je beter zoiets kunt gebruiken:

[cpp]void ShowFrame(string input, int row){
for (int i=0;i<row;i++){
cout << endl;
}
cout << input;
}[/cpp]

en:

[cpp]ShowFrame("test\n",5); // vijfde regel
system ("pause");[/cpp]
 
hij hoort sneller te gaan, maar wat ik niet snap is hoe die oudere en slechtere computers een snellere soort van "framerate" hebben dan ik en of ik iets mischien moet instellen ofzo waardoor hij iets beter doet.
 
Dat komt omdat ik handmatig op 'Enter' moet drukken.

Nog wat gehad aan mijn code?
 
nee hij doet het nog steeds te sloom ik kan niet sneller dan normale computers kunnen. ik denk dat het aan software licht weet jij hoe het anders zou kunnen?
 
Ja. Gewoon die pauzes ertussenuit halen?
Nu moet de gebruiker iedere keer op 'Enter' drukken.

Of is dat de bedoeling?
 
als je de pauzes eruit haalt gaat hij supersnel en is een filmpje van 5 minuten in 10seconden klaar en als je gewoon een toets ingedrukt houdt doet ie het ook maar als ik dat doe gaat het echt heel erg langzaam en bij andere normaal dus ik weet niet waaraan dat ligt en ook als ik de pauzes eruit haal dan gaat ie ook slomer dan bij andere en ik wil gewoon dat ie het normaal doet zodat ik hem op internet kan zetten ofzo en niet dat hij bij andere veel sneller gaat omdat ik hem op die van mij heb ingesteld. Ik heb hem al naar een paar vrienden gestuurd en precies hetzelfde doet ie het bij de andere veel beter en zelfs op die oudere nog veel beter en normaal en op een regelmatig tempo dat niet verschilt en op een of andere manier werkt dat langzamer en ik denk dat dat aan de software ligt maar weet niet hoe ik dat zal moeten aanpassen of bewerken of dat ik mischien iets anders moet downloaden en zo ja wat moet ik dan downloaden enz.
 
Als je echt animaties wil gaan maken zou ik eerder naar Adobe Flash (ActionScript) o.i.d. gaan kijken. Zéker niet op deze manier.

En misschien is het ook een idee om hoofdletters en interpunctie te gaan gebruiken... Het duurde even voor ik je bericht had ontcijferd ;)
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan