refactor FrostCTX in FrostRenderer