跨平台 #196
Replies: 22 comments 3 replies
-
|
看到大家都在尝试自制跨平台版本...于是我放下了手中的gtk-rs(开摆 |
Beta Was this translation helpful? Give feedback.
-
2023-09-10.181049.mp4可惜占用比wpf大很多 |
Beta Was this translation helpful? Give feedback.
-
|
其实我觉得桌宠这种东西还是最好用 native 一点的方式来实现比较好 |
Beta Was this translation helpful? Give feedback.
-
毕竟要跨平台,运行效率、资源占用方面的牺牲是难以避免的🤷♂️(刚才优化了一下,现在只需要70多m的内存了 |
Beta Was this translation helpful? Give feedback.
-
那看是什么层面上的跨平台...像jvm这种compile once run everywhere的确实 但是也可以做到分发不同平台的可执行文件,用 C 之类的 其实 .NET 也可以做到,只是 author 用了 WPF...这就没办法了 我记得 .NET 有跨平台的图形界面框架 我还是继续倒腾一下 gtk-rs 叭.... |
Beta Was this translation helpful? Give feedback.
-
.net 的好像都不是很成熟,不太清楚(很久没碰过c#这些语言了) 也许h5+tauri这种方案更好一点?虽然内存占用有点大(但还不算离谱),但是体积很小,有系统webview就能用 |
Beta Was this translation helpful? Give feedback.
-
我在想,不会到时候冒出来各种 VPet 的实现吧 现在已经有一个 Swift 的了 |
Beta Was this translation helpful? Give feedback.
-
我依然保持原有的观点... 虽然我对偏底层语言的认知基本为零,平时也就是写写 kotlin 之类 jvm 平台的东西 但是我觉得这也算一个很好的学习机会吧... |
Beta Was this translation helpful? Give feedback.
-
确实,但是感觉静态语言做插件对接可能会有些麻烦(? |
Beta Was this translation helpful? Give feedback.
-
|
我倒还没有去仔细研究作者的实现(我还在复习我扔掉了快一年的rust!) 但是我大致看了一下他的结构,貌似我们只需要编写一个 VPet 的插件加载器就行了(? 因为本体其实就是一个 |
Beta Was this translation helpful? Give feedback.
-
参考 C 和 Lua 的关系... |
Beta Was this translation helpful? Give feedback.
-
我主要想兼容创意工坊里部分包含csharp代码的插件(多语言对接对我来说简直是噩梦(悲 |
Beta Was this translation helpful? Give feedback.
-
这倒是个问题... 那其实应该直接用 c# 来写 java 和 c# 倒是不差很多(语法) 我倒是没有这个打算,感觉原生的 VPet 已经够看了 可能像不包含代码的插件可以支持一下 或者自己写一套插件系统 |
Beta Was this translation helpful? Give feedback.
-
这两个感觉可以都做 |
Beta Was this translation helpful? Give feedback.
-
|
我个人比较推荐的是调用我写的Core类库然后改用C#跨平台UI库 |
Beta Was this translation helpful? Give feedback.
-
.net上的跨平台目前还是Avalonia好一点和WPF写法也相近。 |
Beta Was this translation helpful? Give feedback.
-
下次一定, 等更新到1.1版本的时候会大改下调用方式, 把显示独立出来 具体见 #11 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
原生开发的话,我用swift在mac上内存占用能保持在30m以下 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
在下图配置的情况下使用Steam提供的Proton运行VPet可获得良好的体验,各类窗口均可在正常打开,除了背景是纯黑,占用有点高以外(CPU:10%+,MEM:~800MB),基本没有问题 |
Beta Was this translation helpful? Give feedback.








Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
如题,WPF 不好跨平台,使用 wine 一类模拟软件有兼容性问题
我现在正尝试用 compose for desktop 实现,这样就可以实现完全跨平台了
开源地址:https://github.com/FlysoftBeta/VPet-Compose
目前实现的功能:
Beta Was this translation helpful? Give feedback.
All reactions