2 registered members (TipmyPip, 1 invisible),
18,731
guests, and 7
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Performance questions
#309644
02/10/10 15:02
02/10/10 15:02
|
Joined: Nov 2009
Posts: 89 Germany, NRW
TrackingKeks
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2009
Posts: 89
Germany, NRW
|
OK, I have 2 questions about the file reading performance. Is it faster to run 2 functions which read some files at the same moment or one after another? My second question: Is there a big time difference between reading all the data out of 1 file or out of a few files? Thank you for your help!
Gamestudio: A7.82 Commercial/A8 Commercial System specs (Laptop): Windows 7 64bit DirectX v10.1 Intel Core i7-720QM CPU @ 1,60 GHz 4GB DDR2 Ram NVIDIA GeForce GT 230M (1024MB)
|
|
|
Re: Performance questions
[Re: TrackingKeks]
#309661
02/10/10 16:10
02/10/10 16:10
|
Joined: Nov 2009
Posts: 89 Germany, NRW
TrackingKeks
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2009
Posts: 89
Germany, NRW
|
Thank you for answering. I would like to write a "place system" in my game which places all the entities on a grid so that there is an easy access possible for managing and the build editor.
On the one hand reading needs 1 minute with all the data (at the moment 540 files!!+And how long does writing take?).
On the other hand I think when there is only one file the managing is too complicated.
Gamestudio: A7.82 Commercial/A8 Commercial System specs (Laptop): Windows 7 64bit DirectX v10.1 Intel Core i7-720QM CPU @ 1,60 GHz 4GB DDR2 Ram NVIDIA GeForce GT 230M (1024MB)
|
|
|
Re: Performance questions
[Re: TrackingKeks]
#309697
02/10/10 18:53
02/10/10 18:53
|
Joined: Nov 2009
Posts: 89 Germany, NRW
TrackingKeks
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2009
Posts: 89
Germany, NRW
|
No, I do it in a different way. I have a map (90x90). The entity type is written in a file with the name of its y position and in the line of its x pos. So there are only 90 files with 90 lines for the type.
Gamestudio: A7.82 Commercial/A8 Commercial System specs (Laptop): Windows 7 64bit DirectX v10.1 Intel Core i7-720QM CPU @ 1,60 GHz 4GB DDR2 Ram NVIDIA GeForce GT 230M (1024MB)
|
|
|
Re: Performance questions
[Re: Joey]
#309971
02/12/10 12:08
02/12/10 12:08
|
Joined: Nov 2009
Posts: 89 Germany, NRW
TrackingKeks
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2009
Posts: 89
Germany, NRW
|
OK. Ich habe eine große Insel, die mit einem Raster versehen worden ist. Dieses Raster ist in meiner eigenen "Einheit" 90x90 groß, d.h. es können theoretisch 90 Objekte in x-Richtung und 90 Objekte in x-Richtung platziert werden (insg. max. 8100 Objekte platzierbar). Die Definitionen stehen in 90 Dateien. In jeder der Dateien sind 90 Zahlen, jede Zahl steht für einen Objekttyp. Anhand dieser wird die Welt nach dem Raster aufgebaut. Es sind 90 Dateien und 90 Definitionen/Zeilen pro Datei, da z.B. in Datei 16 alle Daten für die Y-Spalte vorhanden sind: insg. alle 90 x-Werte.
Beispiel Datei 54: 0 0 6 2 1... Y-Wert nach Raster 54: X-Wert 1: kein Objekt X-Wert 2: kein Objekt X-Wert 3: Objekt 6 X-Wert 4: Objekt 2 X-Wert 5: Objekt 1
Hoffentlich hast du es jetzt verstanden:)
Gamestudio: A7.82 Commercial/A8 Commercial System specs (Laptop): Windows 7 64bit DirectX v10.1 Intel Core i7-720QM CPU @ 1,60 GHz 4GB DDR2 Ram NVIDIA GeForce GT 230M (1024MB)
|
|
|
Re: Performance questions
[Re: Joey]
#310885
02/17/10 14:50
02/17/10 14:50
|
Joined: Nov 2009
Posts: 89 Germany, NRW
TrackingKeks
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2009
Posts: 89
Germany, NRW
|
OK. ich werde es versuchen. Danke!
Gamestudio: A7.82 Commercial/A8 Commercial System specs (Laptop): Windows 7 64bit DirectX v10.1 Intel Core i7-720QM CPU @ 1,60 GHz 4GB DDR2 Ram NVIDIA GeForce GT 230M (1024MB)
|
|
|
|