add some emun
add resize windows handle in window context and fixed has render thread version bugs