How to allocate my time for two subjects? I am working at my undergraduate university as a research assistant with my supervisor. Our group's research interest is in security and web, so we do projects about middlebox, encrypted searchable database etc. However, my personal research interest is in reinforcement learning and game AI. The reasons I joined a group that has a different research interest are:


I am entering my graduate university (different than my undergraduate one) in around 6 months, and I need a job before that. Staying in academia gives me chances to publish papers than joining a company.
For some reason, I had no better choice of research group in my university.


I am perfectly fine with doing research in a new subject, but I still want to make progress in my own area(which I am not sure is possible), since I plan to return to it in my postgraduate program.

Is it better to devote 100% energy and time in my group's research or allocate some time for my own research?
You just have 6 months for this current job. Your personal interest can stay with you forever, and you can invest more on that when you have joined the grad school. 

For now, I would recommend giving your 100% to the current research and get more productive outcomes on this, with good papers and collaborations. If you feel like you have too much time, energy, and enthusiasm, give 200% of it to your current work!