yes,in most situation, we can use "一直“ or ”总是“ to express the same means 。
But ,there have different in emotional...
we say "总是” to express always do the same thing. most to forces on" what the people do "
"一直“ we want to say a "state ". forces on "what kind of state the people keeping ”
他总是很饿: nomatter how much he ate,or maybe just finished meal,he always feel hungry.(we say that,want to express he already did something,but seems like it didn't work on him..)
他一直很饿:this we just want to say" he is hungry"(this state). before he was hungry,now he is hungry and he will hungry ..forces on to express "keep this state"..if he eat or not,(this action), we dont care or maybe we dont know