Skip to content

SDL is very slow when doing multiple write operations to a file on Windows. #12424

@KKhanhH

Description

@KKhanhH

Relevant stackoverflow issue

Hi, I'm not sure if this issue has been posted before since it seems to be very old, but I haven't found anything other than the linked post.

The write operation on Windows is significantly slower than stdio's fwrite operations for multiple small writes due to the lack of buffering in windows_file_write in SDL_iostream.c along with the use of the direct WriteFile system call. Is using the Windows' CRT stdio calls rather than the system calls an option or could a buffer be added so SDL IOStream has consistent write behavior and performance for platforms with stdio and Windows?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions