Skip to content

Use SDL2 for window creation #4

Description

@EvoPot

This issue talks about how and why we should use SDL2 as a windowing library, and not Rust ecosystem libraries such as winit

Summary

winit has lackluster support for IMEs (Which are used in many world languages, namely Japanese and Chinese) and depends on a lot of different dependencies all of which depend on the Rust ecosystem , whereas SDL2 is a very common shared dependency and can be built without much issue. It works on virtually any platform and overall pretty fun to use.

A simple test creating two new fresh projects shows adding winit as a dependency adds 1741 lines to Cargo.toml, but adding sdl2 only adds 65.

SDL2 being shared and an old library in general also goes on to show how we can use it reliably across more unupdated systems.

So in short, we can use it for short build times and reliably working applications.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions