展示HN:MotionDesk:基于物理驱动、金属加速的macOS壁纸
我开发了MotionDesk,这是一款美观的macOS壁纸应用程序,采用Metal着色器和本地显示API,而不是像大多数壁纸引擎那样在后台播放视频文件。<p>该应用程序能够实时渲染与您环境相应的壁纸。共有16种模式,其中一些包括:<p>- 基于物理的互动模式:您的光标会干扰桌面上渲染的磁场或轮廓场。(这两种模式永久免费)<p>- 天气模式:您可以在桌面上模拟下雨、下雪、打雷等天气效果,甚至可以提取实时天气数据,让您的天气应用基本上成为您的壁纸。<p>- 液态玻璃覆盖:在您现有的壁纸上应用折射效果。<p>- 太空模式:在星星之间旅行(更多项目,如黑洞,正在添加中)<p>- Dock植物:在您的Dock上放置可爱的花朵和仙人掌 :)<p>- 还有更多:Glyph群(受欢迎)、ASCII场(受欢迎)、烟雾、潮汐、脉冲环、霓虹线框、网络、数学、DNA。<p>性能<p>从一开始,这就是一个严格的限制。该应用程序目前平均CPU使用率低于10%,内存约为300 MiB,GPU核心时间为35%。它可以在2015年款的MacBook Pro等较旧的硬件上非常流畅地运行 :) 电池影响非常小,这是我在开始开发时的主要关注点之一。<p>目前状况<p>自发布以来的第一周内下载量达到500次。早期反馈非常积极,我们已经解决了一些受欢迎的功能请求,并修复了一些在测试设备上未发现的错误。
查看原文
I built MotionDesk, an aesthetic macOS wallpaper app that uses Metal shaders and native display APIs rather than playing a video file in the background, which is what most wallpaper engines do.<p>The app renders wallpapers that respond to your environment in real time. A few of the modes (16 total):<p>- Physics-based + Interactive: your cursor disturbs magnetic fields or contour fields rendered on the desktop. (These 2 modes are free forever)<p>- Weather: You can have it rain, snow, thunder, etc on your desktop, or even pull live weather data and have your weather app basically be your wallpaper.<p>- Liquid glass overlay: a refraction effect applied over your existing wallpaper.<p>- Space: Travel through stars (more items such as blackholes being added soon)<p>- Dock plants: places cute flowers and cactus on your dock :)<p>- and more: Glyph swarm (popular), ASCII Field (popular), Smoke, Tide, Pulse Rings, Neon Wireframe, Net, Math, DNA.<p>Performance<p>This was a hard constraint from the start. The app currently averages under 10% CPU time, around 300 MiB memory, and 35% GPU core time. It can run very smoothly on hardware as old as a 2015 MacBook Pro :) Battery impact is very low, which was one of my main concerns when starting its development.<p>Where it stands<p>500 downloads in the first week since launch. Early feedback has been very positive, and we have addressed some popular feature requests and fixed some bugs that were not caught on our test devices.