Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Win32 FDS » SEye
Re: SEye [message #254578 is a reply to message #253687] Wed, 18 April 2007 13:19 Go to previous messageGo to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma:
General (3 Stars)
I had a fealing it was a bad idea.

The ways SEye works, it has a timer that updates the field every 100 milliseconds. All it does is invalidate the frame the main field is in, this causes the program to redraw it. In the paint event, it reads from 3 arrays, building, players, and vehicles. and displays the info, so it is all seperate.

Now, by reading more data than needed wont affect the CPU usage, unless it is reading from the socket and has to split the data by a delimiter then parse each one. Just one, can cause a "traffic jam" and the whole program will freeze and .NET will shut it down. This will be vary rare and only accour on people with slow internet connections.

I can get it to read gamelogs line by line, it's just like i said, harder. I can get every line of a file into a String array with one function call. No instances needed Smile. In this case, i need to create and instance a read from it.

The harder part i am worried about is the timing, because, if i read it at my own speed it would be going alot faster or slower than it should. My salvation in this is gamelog provides the time that the data was logged, so, i will need to read ahead 1 line, get the time take the current line's time a take away and wait for that amount of time before i progress. Sounds simple, although, i have no idea how i am going to do that yet.



Do you think i should create a "converter" for the gamelogs to make then smaller and easily SEye readable?

[Updated on: Wed, 18 April 2007 13:21]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: BRenBot
Next Topic: FDS
Goto Forum:
  


Current Time: Sat Dec 28 19:23:54 MST 2024

Total time taken to generate the page: 0.01302 seconds