Jump to content
The simFlight Network Forums

Max size for FSUIPC Write Process


Recommended Posts

Hi Pete,

Was wondering if you could recommend the maximum amount of data to attempt to Write and then Process, in one pass. IOW:

FSUIPC_Write SomeData...

FSUIPC_Write SomeMoreData...

FSUIPC_Write SomeMoreData...

FSUIPC_Write SomeMoreData...

etc, and then

FSUIPC_Process

Trying to speed up Writing my analog values to FS. Right now I do a Process after each Write for each control value, but I am going to experiment with Writing all the control values first, then doing a Process.

Thanks!

James

Link to comment
Share on other sites

Was wondering if you could recommend the maximum amount of data to attempt to Write and then Process, in one pass. IOW:

FSUIPC_Write SomeData...

FSUIPC_Write SomeMoreData...

FSUIPC_Write SomeMoreData...

FSUIPC_Write SomeMoreData...

etc, and then

FSUIPC_Process

The maximum allowed in total for reads and writes in one Process call is something near 31000 bytes I think (see the library code, I think it's defined in there someplace), but I wouldn't advise that much. thart includes all the red tape and stuff.

If you are using WideFS at all you want to keep it smaller in any case. There should really never need to be any large numbers of writes to do in any case, surely?

If you are only talking in a few hundreds of bytes, or even a few k, don't worry about it.

Pete

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.