Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有考虑使用跨平台架构构建项目吗 #30

Closed
Supheria opened this issue Dec 3, 2024 · 3 comments · Fixed by #31
Closed

有考虑使用跨平台架构构建项目吗 #30

Supheria opened this issue Dec 3, 2024 · 3 comments · Fixed by #31
Labels
Feature New funtion has been added

Comments

@Supheria
Copy link
Contributor

Supheria commented Dec 3, 2024

如果能在其他平台例如安卓或者Linux上运行此项目就再好不过了。有意向的话我可以试着用Avalonia重构

@textGamex
Copy link
Collaborator

textGamex commented Dec 3, 2024

项目立项之处想着为了高颜值+玩钢丝的应该大部分都是 Windows 操作系统,所以选的 WinUI3, 跨平台感觉并不那么重要.

但现在实际开发了一段时间后, 有些动摇了, 原因有2:

  1. 微软对 WinUI 的支持力度令社区失望, 很多问题拖了很久都没解决, 连内存泄漏这种非常影响用户体验的问题都拖了四年
  2. WinUI 是不完全开源的, 这就意味着 WinUI 无法从社区获取贡献, 我记得 WinUI 团队就5个人, bug 修复赶不上 issue 提的速度, 所以社区对 WinUI 的前景并不看好. 这里有两个个很有意思的 issue 和讨论 Great News: All Bugs Will be Fixed In the Year 2041, Ohh...WinUI3 is really dead! - When can we expect the announcement? 可以看到社区对 WinUI 的看法

但就跨平台而言, 我想有以下几个问题

  1. 迁移成本和学习成本
    我并不会 Avalonia, 听说跟 WPF 有些相像, 不知道要学多久能上手呢? 而且项目开发这么久, 总感觉有些积重难返.
    在刚发觉 WinUI 存在内存泄漏问题时,我曾想过转到 WPF, 但因为 UI 风格 + 迁移成本,最终还是放弃了.
  2. 维护成本
    我手头上并没有 Linux 和 MacOS 设备, 虽然可以装虚拟机, 但也会多出许多平台特定Bug.
  3. 带来的收益
    花费这么大力气迁移到 Avalonia, 能增加多少潜在用户呢? 带来的收益能否抵消付出的时间呢?
  4. UI风格
    我还是挺喜欢微软的 Fluent Design, 不知道迁移到 Avalonia 是否依然能维持这种设计风格?

@PurplePlanen
Copy link
Contributor

Of course, some people play Hearts of Iron 4 on Mac and Linux, but it's not the main one, so the author mainly develops the Windows version.

@PurplePlanen
Copy link
Contributor

image
😊

@textGamex textGamex linked a pull request Dec 5, 2024 that will close this issue
9 tasks
@textGamex textGamex added Feature New funtion has been added and removed enhancement labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New funtion has been added
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants