Retroarch and Cheat Engine's speed hack

I’m trying to get Cheat Engine’s speed hack to work with 8-bit/16-bit games launched within Retroarch, specifically using the VICE x64 core. I know there’s Warp mode in RA but I’m trying to create a toggle so I can use two different speed settings - warp will load disk games at maximum speed and Cheat Engine with run them at 3X speed for in-game QoL purposes. While Cheat Engine’s speed hack works with speeding up the retroarch interface it doesn’t hook the game itself. However, using the standalone WinVICE Cheat Engine’s speed hack works fine in speeding up games. Anyone have any ideas?